Parse an xml file with line breaks in the beginning

R

Raj Mudaliar

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>
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top