Have you verified that $document contains what you expect it to contain?
The XML::DOM docs state:The parsefile() method now also supports URLs, e.g. http://www.erols.com/enno/xsa.xml. It uses LWP to download the file and then calls parse() on the resulting string.
So we must conclude, that parse() does not do the same thing as parsefile().
Have you tried using parsefile() yet?
You could also fire up the debugger (Using the Perl Debugger) and see where it goes wrong.
What mirod said.In reply to Re: use XML::DOM - what to do with empty tags?
by shigetsu
in thread use XML::DOM - what to do with empty tags?
by kevyt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |