LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-12-2006, 09:02 PM   #1
Armon
Member
 
Registered: Feb 2005
Distribution: Ubuntu- Dapper Drake and Mac OS X 10.4
Posts: 46

Rep: Reputation: 15
reading xml


I don't do much programing, but in this game I play there is a stock market which every 5 minutes updates the quotes, in an xml files at:
http://www.gewar.net/war/resources/xml/stockmarket.xml , how could i write a script that would display the info in the format of
Id Name Price eg..
1 Diamond 13.29

I was thinking along the lines of a bash script, but have little knowledge of XML.
 
Old 01-12-2006, 11:26 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
XML is a little involved, I'd recommend using a more powerful lang eg Perl that has modules to handle that for you.
 
Old 01-13-2006, 12:29 AM   #3
Armon
Member
 
Registered: Feb 2005
Distribution: Ubuntu- Dapper Drake and Mac OS X 10.4
Posts: 46

Original Poster
Rep: Reputation: 15
problem being i need the data in that xml file which is the only available format.
 
  


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 08:24 AM
xml? NonSumPisces Programming 1 07-06-2004 06:54 PM
xml zdos Linux - Newbie 1 05-23-2004 03:34 PM
Reading a xml document: amirspl Programming 3 09-10-2003 08:51 AM
Help with xml Drogo Linux - General 1 10-26-2002 02:13 AM


All times are GMT -5. The time now is 06:56 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration