Parse an xml file with line breaks in the beginning

Discussion in 'Perl' started by Raj Mudaliar, Jul 14, 2003.

  1. Raj Mudaliar

    Raj Mudaliar Guest

    Have an xml file with line breaks in the begining, parsed it with
    XML::parser, getting an error like:

    ****
    xml declaration not at start of external entity at line 3, column 0,
    byte 4:
    <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
    ^ at C:/Perl/site/lib/XML/Parser.pm line 185
    ****

    xml-file.xml
    ***


    <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
    <ROOT>
    <PARENT>... </PARENT>
    <CHILD>.... </CHILD>
    </ROOT>
     
    Raj Mudaliar, Jul 14, 2003
    #1
    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. hackingKK
    Replies:
    4
    Views:
    1,541
    Diez B. Roggisch
    Oct 31, 2010
  2. Stefan Behnel
    Replies:
    1
    Views:
    1,036
    David Vicente
    Feb 9, 2011
  3. Jesse B.
    Replies:
    9
    Views:
    261
    Jesse B.
    Mar 27, 2010
  4. Marek Stepanek
    Replies:
    12
    Views:
    443
    Peter J. Holzer
    Sep 2, 2006
  5. PerlFAQ Server
    Replies:
    0
    Views:
    402
    PerlFAQ Server
    Feb 24, 2011
Loading...

Share This Page