There is a small nifty utility called xmlwf that can check your xml documents to see if they are well formed.
sudo yum install expat
Once installed, simply use :
Need more details, just check the man page 🙂
- Assigning ID to Objects transmitted in XML document (stackoverflow.com)
- removing characters from php output in xml (stackoverflow.com)
- C# XML parsing using XElement and child contents (stackoverflow.com)