in reply to Re^3: XML::Simple--dealing with a variable element
in thread XML::Simple--dealing with a variable element



I wrapped the XML snippet with <document> tags and the error went away. Now I can't get anything to print out from within the foreach loop ...

I tried both versions of this -- foreach and 'map' ones -- and keep getting the following error:

junk after document element at line 24, column 0, byte 825 at C:/Perl/site/lib/XML/Parser.pm line 168

where line 24 occurs just above __DATA__. I couldn't figure out from Parser.pm what could be happening. Do you have any suggestions? Thanks much.
  • Comment on Re^4: XML::Simple--dealing with a variable element

Replies are listed 'Best First'.
Re^5: XML::Simple--dealing with a variable element
by rhesa (Vicar) on Jul 27, 2006 at 21:06 UTC
    The line 24, column 0, byte 825 refers to your XML content, so there must be something wrong there.