Re: libxml2 application data

Shlomi Fish <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
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.

Regards,

	Shlomi Fish

> -- Petr
>
> On ne 21. prosince 2008, philippe marguinaud wrote:
> > Hi all,
> >
> > I have written C programs using libxml2 and used to attach
> > application data to xml nodes using the _private field of node
> > structs. I would like to know whether it is possible to do that
> > using the Perl bindings; I have not seen anything like that in
> > the pod documentation.
> >
> > Regards,
> >
> > Philippe
> >
> > _________________________________________________________________
> > Invite your mail contacts to join your friends list with Windows
> > Live Spaces. It's easy!
> > http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/fr
> >iends.aspx&mkt=en-us
>
> _______________________________________________
> Perl-XML mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Parody on "The Fountainhead" - http://xrl.us/bjria

Shlomi, so what are you working on? Working on a new wiki about unit testing 
fortunes in freecell? -- Ran Eilam
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.