• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

PLEASE GIVE ME THE CODE TO PARSE CONFIGURATION XML FILE (BELOW)URGENT,HELP ME.......

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use SAX,DOM or JDOM to parse your XML and then use the values accordingly.
Try google for examples.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And read http://faq.javaranch.com/view?HowToAskQuestionsOnJavaRanch

Moving to our XML forum...
 
Have you no shame? Have you no decency? Have you no tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic