TO: FROM: BODY: SUBJECT: XML: <?xml version="1.0"?> <!-- This is our first XML file --> <MESSAGE> <TO>STUDENT</TO> <FROM>AUTHOR</FROM> <SUBJECT>Introduction to XML</SUBJECT> <BODY>Welcome to XML</BODY> </MESSAGE>
Your XML is fine and it is displayed, in the default collapsible structure view, in my IE 5 browser.
Are you by any chance using an older version of IE? A non-XML aware version would most likely attempt to treat the file as HTML, skip the tags it did not understand (all of them in this case) and just display the text without the tags.
If this is the behavior you are seeing, then the version of IE is possibly the problem.