| Author |
PLEASE GIVE ME THE CODE TO PARSE CONFIGURATION XML FILE (BELOW)URGENT,HELP ME.......
|
Sreekanth T.K
Greenhorn
Joined: Mar 02, 2006
Posts: 4
|
|
PLEASE GIVE ME THE JAVA CODE FOR THIS:- I have a configuration xml file , where i want to keep the news provider details such as url, name, interval etc. Read that configuration file and then get the url and other information and then do the RSS parsing for the urls you get from the config file... <config> <provider> <name>Times of india</name> <category>India</category> <url>http://timesofindia.indiatimes.com/rssfeeds/-2128936835.cms</url> <interval>30</interval> </provider> <provider> <name>Times of india</name> <category>International Business</category> <url>http://timesofindia.indiatimes.com/rssfeeds/-2128680634.cms</url> <interval>30</interval> </provider> <provider> <name>CNN</name> <category>world news</category> <url>http://rss.cnn.com/rss/cnn_world.rss</url> <interval>30</interval> </provider>
|
 |
Himanshu Bisht
Ranch Hand
Joined: Aug 27, 2004
Posts: 96
|
|
Use SAX,DOM or JDOM to parse your XML and then use the values accordingly. Try google for examples.
|
 |
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
|
|
And read http://faq.javaranch.com/view?HowToAskQuestionsOnJavaRanch Moving to our XML forum...
|
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
|
 |
 |
|
|
subject: PLEASE GIVE ME THE CODE TO PARSE CONFIGURATION XML FILE (BELOW)URGENT,HELP ME.......
|
|
|