LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to view .xml files (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-view-xml-files-923697/)

nigelc 01-13-2012 11:59 PM

how to view .xml files
 
Hi,
is there any way to view .xml files. cat file.xml shows everything not just the text. xmllint seems to do the same as does the browser.
Or are they meant to be like this?
They seem look like a raw html files.

Nigelc

fukawi1 01-14-2012 12:18 AM

Yes they are meant to look like that.
XML files aren't meant to be "displayed" in the same way that a HTML file is.
Quote:

Extensible Markup Language (XML) is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable.
http://en.wikipedia.org/wiki/XML

nigelc 01-14-2012 01:20 AM

Well, then it must be solved.

dudeman41465 01-14-2012 04:11 AM

Yea, .xml is a generic file language where you can pretty much make up your own variables and store them in that file format. To view one in a manner other than by just using cat, you'd have to use the program that generated it.


All times are GMT -5. The time now is 03:15 AM.