in reply to use XML::DOM - what to do with empty tags?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: use XML::DOM - what to do with empty tags?
by kevyt (Scribe) on Jan 03, 2007 at 16:53 UTC |