XML::Parser error

P

pj

Hi, I am getting the following error
----------------------------------------------------------------
not well-formed (invalid token) at line 1, column 0, byte 0 at
/vdt/perl/lib/i386-linux-thread-multi/XML/Parser.pm line 187
----------------------------------------------------------------
when I tried to parse the XML file using XML::parse::EasyTree

The xml file I am trying to parse looks like
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE GANGLIA_XML [
<GANGLIA_XML VERSION="2.5.5" SOURCE="gmetad">
.....

and I have no idea why it's complaining about the line 1, which is
<?xml version="1.0" encoding="ISO-8859-1"?>

any ideas?
thanks in advance
 
E

Eric Bohlman

(e-mail address removed) (pj) wrote in
Hi, I am getting the following error

"Looks like" or "is"?
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE GANGLIA_XML [
<GANGLIA_XML VERSION="2.5.5" SOURCE="gmetad">
....

and I have no idea why it's complaining about the line 1, which is
<?xml version="1.0" encoding="ISO-8859-1"?>

No it isn't; that's line 0. What comes after isn't well-formed, since a
plain start tag isn't allowed inside an internal DTD subset.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top