Validate XML documents via a bookmarklet

I've attached a simple HTML file that contains a textarea and some JavaScript. You can paste any text into the textarea and pressing the button will invoke the browser's XML parser and test whether the text is a valid XML document.

I've also modified the JavaScript code so it can be used as a bookmarklet: Verify XML

Just drag&drop the link to your bookmarks bar, select some text on a page and click the bookmark(let) to validate it as an XML document.

AttachmentSize
xmlchecker.html5.78 KB