LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 08: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, 10:26 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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-12-2006, 11:29 PM   #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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:54 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