Re: libxml2 application data

Robin Berjon <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
Hi Philippe,

On Dec 22, 2008, at 14:48 , philippe marguinaud wrote:
> 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...

It may not be exactly what you're looking for, but if your nodes are  
elements you can stuff your data inside the tree using a namespace of  
your own (if they're not elements, it can still be done to a point but  
it can become hacky).

Also, if you gave us a (rough) description of what you're trying to do  
we could perhaps suggest options other than decorating the tree  
directly.

-- 
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
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.