in reply to Re: How to parse XML coming from a socket?
in thread How to parse XML coming from a socket?

This is interesting: I was actually thinking of writing a module similar to XML::DOM::Twig (which is hopelessly out of date BTW), on top of XML::LibXML. It would use as many of XML::LibXML native functions as possible, but add convenience methods from XML::Twig. I found that using XPath in XML::LibXML makes it really easy to access data in the XML tree, but that you then have to use the DOM for modifying it, which is verbose and clumsy.

Does this make sense, and which methods would you think would be most helpful? For eaxmple I really miss XML::Twig's version of insert when I use the DOM. prefix is another really useful one that can't be done simply.

  • Comment on Re: Re: How to parse XML coming from a socket?

Replies are listed 'Best First'.
Re^3: How to parse XML coming from a socket?
by Aristotle (Chancellor) on Oct 04, 2003 at 18:42 UTC
    To be honest, I have no idea. So far I've had no need to transform existing documents, and mostly need to parse XML documents or occasionaly create ones from scratch. Full XPath support is very helpful to parse; Twig's cut down version doesn't compare. Nevertheless, something along the lines of XML::LibXML::Twig would certainly be handy when I eventually have to deal with transformation type tasks.

    Makeshifts last the longest.