in reply to Element Missing in output XML file?
I'm not certain I understand your question, and I've never used XML::LibXML, so I may be wildly off base. That said, a cursory examination suggests that your problem is with this line:
for my $para ($document->getElementsByTagName ("p")){
I suspect that getElementsByTagName doesn't find any paragraph elements for the cases indicated, so your code skips the entire for loop body. It's hard to be sure, though, as you forgot to show us some test data to check against.
...roboticus
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Element Missing in output XML file?
by Anonymous Monk on Mar 11, 2008 at 17:25 UTC | |
by roboticus (Chancellor) on Mar 12, 2008 at 03:49 UTC | |
by Anonymous Monk on Mar 12, 2008 at 07:12 UTC |