Examining files in JavaScript

Choose an XML, HTML, or .txt file, in the same Internet domain as the parser.
(Note the HTML must be XHTML consistent)

The file rendered in the browser
The source code of the file

Choose one of these
The file parsed as an XML object