RE: libxml2 application data
philippe marguinaud <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
Hi Petr, I have thought about using the $$node trick, but when the XML tree is modified ( for instance when a node is deleted ), then some of the nodes are re-numbered. I can provide a demo script to illustrate this if you want. So I am stuck with XML::LibXML, I will have to find another module... Regards, Philippe > From: [email protected] > To: [email protected] > Subject: Re: libxml2 application data > Date: Mon, 22 Dec 2008 12:14:20 +0100 > CC: [email protected] > > 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). > > -- 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 > > _________________________________________________________________ Drag n’ drop—Get easy photo sharing with Windows Live™ Photos. http://www.microsoft.com/windows/windowslive/photos.aspx _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs