Copyright © 2010 Silmaril Consultants
Rev: 2010-04-24T15:52:33+0100

Open it in an XML browser or XML editor.B.3  Someone sent me an XML file. How do I read it?

If the file is well-formed or valid XML, you can just open it with any XML-conformant browser (see question B.4, ‘Where can I get an XML browser?’). This will display the file in an unformatted view, showing all the markup in a format that lets you fold up or unfold the nested hierarchy (click on the little plu and minus symbols), which will at least let you read something.

If the file contains a link to an XSLT or CSS stylesheet (and the stylesheet was provided or is web-accessible) then the browser should format the file in a readable manner (but beware that in-browser formatting is not robust).

If you want to edit the file, you need an XML editor (see the tip ‘Editors’ in question D.6, ‘What XML software is available?’). Unless you are very skilled with pointy-bracket markup, do not try to edit XML files with non-XML editors.