in reply to Use Storable for storing XML::LibXML object
The problem is that an XML::LibXML node is really just a pointer to a libxml struct that lives in XS land. It has no real meaning once the DOM is disposed of.
What to do about it? Firstly, an important question. Say you've stored a node which represents a deeply nested XML element. Once you've retrieved the object from storage, should you only be allowed to query "down" from the node, or should $node->parentNode Just Work™?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Use Storable for storing XML::LibXML object
by buff (Acolyte) on Jul 05, 2014 at 10:24 UTC | |
by tobyink (Canon) on Jul 05, 2014 at 12:23 UTC | |
by ikegami (Patriarch) on Jul 05, 2014 at 19:51 UTC | |
by buff (Acolyte) on Jul 07, 2014 at 10:27 UTC | |
by buff (Acolyte) on Jul 05, 2014 at 17:38 UTC |