in reply to Re: XML parsing
in thread XML parsing

Thank you, this is really helpful. I have two questions about the code. First of all:  $el->textContent eq 'baz' Is there a way to say find the content that ISN'T baz? Is there a neq, basically? Secondly, is there any quick way through LibXML to print back into an XML file, or do I just need to use normal perl file output for that?

Replies are listed 'Best First'.
Re^3: XML parsing
by toolic (Bishop) on Oct 03, 2014 at 15:46 UTC
      Yes, figured that out shortly after I asked it, I thought for some reason it was using something special to the module. Ne works!
Re^3: XML parsing
by Anonymous Monk on Oct 03, 2014 at 19:22 UTC
    Secondly, is there any quick way through LibXML to print back into an XML file, or do I just need to use normal perl file output for that?

    XML::LibXML::Document has the methods toFile and toFH, or you can use toString and print it to a file yourself.