Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

Hi,

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.

Regards
McA


Comment on Re: Bug in XML::Parser
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1059233]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (13)
As of 2015-07-02 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (41 votes), past polls