XML::Parser error

Discussion in 'Perl Misc' started by pj, Aug 26, 2004.

  1. pj

    pj Guest

    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
     
    pj, Aug 26, 2004
    #1
    1. Advertising

  2. pj

    Eric Bohlman Guest

    (pj) wrote in
    news::

    > 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


    "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.
     
    Eric Bohlman, Aug 26, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ZOCOR

    XML Parser VS HTML Parser

    ZOCOR, Oct 3, 2004, in forum: Java
    Replies:
    11
    Views:
    845
    Paul King
    Oct 5, 2004
  2. arne
    Replies:
    0
    Views:
    377
  3. Erik Wasser
    Replies:
    5
    Views:
    520
    Peter J. Holzer
    Mar 5, 2006
  4. Sean
    Replies:
    3
    Views:
    339
    robic0
    Oct 3, 2006
  5. Sean
    Replies:
    0
    Views:
    392
Loading...

Share This Page