xmllint --format file.xml #### xmllint --format file.xml file.xml:259: parser error : Opening and ending tag mismatch: CallDetailByService line 207 and CallGroupInfo ^ file.xml:260: parser error : Opening and ending tag mismatch: CallGroupInfo line 203 and ServiceInfo ^ file.xml:261: parser error : Opening and ending tag mismatch: ServiceInfo line 80 and InvoiceDetails ^ file.xml:265: parser error : Opening and ending tag mismatch: InvoiceDetails line 7 and CustomerInvoice ^ file.xml:266: parser error : Premature end of data in tag CustomerInvoice line 2 ^