Checking your XML Document

Your browser is a great way to check an XML document if you are getting parsing or other errors. As with most things, Firefox is a lot better than Internet Explorer for this. For example, a large XML file being parsed had junk characters right at the end of the document.

In Internet Explorer 8, it appears there is nothing wrong - the XML tree is parsed — well all the way until you hit the end of the document where you see something like this:


Not the easiest thing to see when you are working with a large document.

Contrast this to what happens when you load the XML file in Firefox 3.6:


It won't even attempt to show you the XML structure, it will tell you straight up there is a problem. Something I personally find a lot easier to spot.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License