Parse an xml file with line breaks in the beginning

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Raj Mudaliar

    Parse an xml file with line breaks in the beginning

    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>
Working...