This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes PLEASE GIVE ME  THE CODE TO PARSE CONFIGURATION XML FILE (BELOW)URGENT,HELP ME....... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "PLEASE GIVE ME  THE CODE TO PARSE CONFIGURATION XML FILE (BELOW)URGENT,HELP ME......." Watch "PLEASE GIVE ME  THE CODE TO PARSE CONFIGURATION XML FILE (BELOW)URGENT,HELP ME......." New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PLEASE GIVE ME THE CODE TO PARSE CONFIGURATION XML FILE (BELOW)URGENT,HELP ME.......
 
Similar Threads
Wipro fires employees for faking CVs
"listener" tag in web.xml
Authenticated but denied access
GIVE ME CODE TO PARSE XML CONFIGURATION FILE IN JAVA (URGENT)HELP ME(XML FILE BELOW )
how to display more rss feeds in java