LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-06-2008, 12:17 PM   #1
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Artix,Arch,Slackware,Bluewhite64
Posts: 261

Rep: Reputation: 40
xml viewer


What can I use to view xml files? Are there any recommended xml applications? I can only seem to view them in their raw text file format.

The only application that I've found to be able to parse them correctly is microsoft office and I only have access to it at work. And transferring them to my work PC is obviously too much of a hassle.

Last edited by Furlinastis; 06-06-2008 at 12:19 PM. Reason: spelling
 
Old 06-06-2008, 01:19 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
It all depends on how you want them to look. By design, the file format is application-agnostic; only the end application(s) understand how to use the data. Without the target application's built-in knowledge, the data is just text. Or do you want something that simply pretty-prints and/or syntax highlights the file? Many software development oriented editors (nedit is the one I like, there are many others) do this.
--- rod.
 
Old 06-06-2008, 01:32 PM   #3
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Artix,Arch,Slackware,Bluewhite64
Posts: 261

Original Poster
Rep: Reputation: 40
OH, I just want to view the file as it should be viewed. I'm not looking to develop anything with xml.

Well, if you open an xml file with gvim or another ordinary text editor, you can see the tags. I want to view the xml file as it should. Kind of like, opening an html file and seeing all the tags as opposed to viewing it with a browser.
 
Old 06-06-2008, 02:11 PM   #4
Arwkin
LQ Newbie
 
Registered: Oct 2007
Distribution: MEPIS
Posts: 15

Rep: Reputation: 0
Quote:
Well, if you open an xml file with gvim or another ordinary text editor, you can see the tags. I want to view the xml file as it should.
Viewing XML "as it should" as you put it depends on the context of what its being used for. For example, Using NetBeans with an Open-ESB plug-in, I can view a nifty graphic diagram of a BPEL object. "Under the hood" the source code is pure XML. What are your XML files used for? (need context.. SOAP, BPEL, WSDL,...?) Chances are you may need an IDE (Eclipse, NetBeans, etc) and a plug-in to view these XML files in a way you are used to.
 
Old 06-06-2008, 02:49 PM   #5
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Artix,Arch,Slackware,Bluewhite64
Posts: 261

Original Poster
Rep: Reputation: 40
I must admit I don't know much of anything about xml files.

The file I want to view is a 3DMark file which I extract from this xpi archive(zip file) when I save my results. I don't get why it doesn't just print my score. The file shows nicely with microsoft excel, but I can't find another program to view it as I don't own a copy of ms office.

I'll check out netbeans, although looking at its website it seems a little more than I need, but if it does the job I'm not going to complain.
 
Old 06-06-2008, 04:38 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Excel works with your files ?
Try OpenOffice.org Calc (Same funtion as Excel, ==> Spreadsheet)

Rgds
 
Old 06-06-2008, 06:37 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
There are xml extension tools you can install for firefox. Also poke around in your package manager. There should be some xml/xslt console and gui programs you can install as well. The xmlstarlet package allows you to transform an xml file from the command line instead of creating an external xsl file.
 
Old 06-07-2008, 01:40 AM   #8
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Artix,Arch,Slackware,Bluewhite64
Posts: 261

Original Poster
Rep: Reputation: 40
Openoffice just gives me garbage, but that Firefox XML extension worked as well as I guess I'm going to get. If I click views>"pretty print" it outputs as a wordwraped text file. Thanks.

I think I'll fool around with that netbeans app... haven't tried coding in quite sometime. Thanks for turning me onto that.
 
Old 09-13-2012, 09:31 AM   #9
pshoaf
LQ Newbie
 
Registered: Feb 2005
Location: Charleroi, PA 30 mi SE of Pgh
Distribution: RedHat, Fedora, Oracle
Posts: 22

Rep: Reputation: 0
Smile Viewing XML Files

I had the same question. Most XML files while they are as most same just text files, often contain all sorts of control codes embedded so they can not be viewed as a text file. I found through a google serach the Linux command xmllint which parses out the control codes and display the XML code as text or as an html file.

Hope this helps.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for XML::Parser... configure: error: XML::Parser perl module is required for kornerr Linux - General 11 11-16-2008 07:24 AM
no xml, convert tvtime stationlist to xml for mythtv/freevo... frenchn00b Linux - General 8 11-03-2007 11:35 PM
LXer: StAX’ing up XML: Streaming API for XML LXer Syndicated Linux News 0 11-30-2006 07:54 AM
configure: error: could not find DocBook XML DTD V4.1.2 in XML catalog Fadoksi Linux - Software 1 07-16-2006 06:41 AM
Accidently lost the multiple desktop veiwer from the kde bar... Thaidog Linux - Software 3 05-11-2004 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration