This week's book giveaways are in the Cloud/Virtualization and Go forums.
We're giving away four copies each of Cloud Native Transformation: Practical Patterns for Innovation and The Go Workshop and have the authors on-line!
See this thread and this one for details.
Win a copy of Cloud Native Transformation: Practical Patterns for InnovationE this week in the Cloud/Virtualization forum
or The Go Workshop in the Go forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

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

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
And read http://faq.javaranch.com/view?HowToAskQuestionsOnJavaRanch

Moving to our XML forum...
 
Why am I so drawn to cherry pie? I can't seem to stop. Save me tiny ad!
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!