in reply to Re: XML::LibXML::Reader and XPATH
in thread XML::LibXML::Reader and XPATH

Thanks for your answer and the link. it helped me to find another interesting link and it is not so simple XPath vs the default namespace

I don't think the use of XML::LibXML::XPathContext is compatible XML::LibXML::Reader which is annoying.
The files I am parsing are really big and I don't want to use DOM or SAX...

  • Comment on Re^2: XML::LibXML::Reader and XPATH and default namespace

Replies are listed 'Best First'.
Re^3: XML::LibXML::Reader and XPATH and default namespace
by dHarry (Abbot) on Feb 20, 2009 at 16:12 UTC

    For big files DOM is out of the question though there always tricks of course. With SAX I've parsed big files with good performance (Personally I favor the Xalan and Xerces implementations of Apache). Although I do use libxml2 I invariably use XML::Twig when I am in a Perl environment. I have parsed files over 1 GB with it. There is also XML::Twig::XPath but I never used it. You would have to check if it solves your problem. The document I mentioned is only one from a (big) series. They elaborate the best practices for XML-Schema usage.