Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Bug in XML::Parser

by McA (Priest)
on Oct 22, 2013 at 16:22 UTC ( #1059233=note: print w/replies, xml ) Need Help??

in reply to Bug in XML::Parser


now, after you've formatted the xml-file, someone lazy like me can press the download link to get the xml source. I took the xml file and did the following:

xmllint --format file.xml

This gives me the following:

xmllint --format file.xml file.xml:259: parser error : Opening and ending tag mismatch: CallDeta +ilByService line 207 and CallGroupInfo </CallGroupInfo> ^ file.xml:260: parser error : Opening and ending tag mismatch: CallGrou +pInfo line 203 and ServiceInfo </ServiceInfo> ^ file.xml:261: parser error : Opening and ending tag mismatch: ServiceI +nfo line 80 and InvoiceDetails </InvoiceDetails> ^ file.xml:265: parser error : Opening and ending tag mismatch: InvoiceD +etails line 7 and CustomerInvoice </CustomerInvoice> ^ file.xml:266: parser error : Premature end of data in tag CustomerInvo +ice line 2 ^

That proves what Anonymous Monk said early with his X-ray-view. The xml file is not valid.

So, my advice: On Linux the program xmllint is a valuable tool which you can find regularly in the libxml2 package.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1059233]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2018-02-18 22:42 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (257 votes). Check out past polls.