How display XML?
View XML Files
Raw XML files can be viewed in all major browsers.
You just need to drag and drop yuor XML file into the browser to open it.
Don't expect XML files to be displayed as HTML pages. XML files don't have style code!
But most browsers will display an XML document with color-coded elements.
For example this XML code
will be viewed as
Some browsers report errors if an invalid XML file is opened, others show an error message or highlight the wrong XML code.
This behavior of browsers is not standard.
Why is the style missing in the XML code?
XML documents do not carry information about how to display the data.
Each XML tag has a meaning for the author of the XML file. Browsers can't know what meaning is given to the tags and so they don't know how to display the data.
If you want to style an XML document, use XSLT.