in reply to XML::LibXML problem

I am unclear on what you are trying to accomplish. Could you please provide an example of the XML you are trying to parse? Or perhaps how the XML::LibXML::Document object is set up?

Side note: Maybe it is just that I do not understand this module fully, but where does the "3" come from, where you compare the nodeType(3rd line of your code)?

~Thomas~