Re: libxml2 application data
Robin Berjon <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
On Dec 22, 2008, at 12:55 , Shlomi Fish wrote:
> On Monday 22 December 2008, Petr Pajas wrote:
>> No, XML::LibXML uses the _private slot for its own purposes. I'd
>> suggest using a Perl hash and $$node as key ($$node is an integer
>> that uniquely identifies a libxml2's node).
>
> As a future extension to XML::LibXML, wouldn't it be possible to put a
> user_data (or whatever) accessor for attaching some Perl data to a
> node which
> will be contained in XML::LibXML's representation of _private? What
> Philippe
> describes sounds like a useful and common use-case.
And it even is part of DOM 3:
http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-setUserData
--
Robin Berjon - http://berjon.com/
Feel like hiring me? Go to http://robineko.com/
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs