Posted on 2008-02-14 02:50:01-08 by burstwebsolutions
SAX.pm Error
I'm trying to open an XML file using XML-Simple and getting the following error message. We've reinstalled XML-SAX, XML-Simple and Perl with no luck. Any ideas? Thanks!

-- ERROR --
Extra content at the end of the document at /usr/lib/perl5/site_perl/5.8.8/i686-linux/XML/LibXML/SAX.pm line 64
at /usr/lib/perl5/site_perl/5.8.8/XML/Simple.pm line 362

-- CODE --
use XML::Simple; $xml = new XML::Simple; $data = $xml->XMLin('feed.xml');
Direct Responses: 7099 | 9339 | Write a response
Posted on 2008-02-14 03:52:35-08 by grantm in response to 7098
Re: SAX.pm Error
What happens when you give XMLin() some data without extra content on the end?
Direct Responses: Write a response
Posted on 2008-11-17 10:40:42-08 by jonasbn in response to 7098
Re: SAX.pm Error
I get this error when my XML files contain more than one XML document, if the same root tag is repeated. jonasbn
Direct Responses: 9359 | Write a response
Posted on 2008-11-17 18:49:23-08 by eserte in response to 9339
Re: SAX.pm Error
XML content can contain only one root.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.