• 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

Updating the info from other sites to XML file

 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have the modules like currency info, news and bullion rates. Which have to update daily from any service provider (web site)who is providing the related info.
For eg bullion rates are provided by usbullionexchange.com. The contents from the site has to be converted into a XML file.
Can any one help me in solving the above problem.
Tks in advance
Jowsaki
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please answer the following questions -
What is the original format of the information( XML/HTML/Text/Proprietary etc ) when you receive it from the external provider?
What are you trying to achieve by converting the data to XML format?


------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java�2 Platform.
IBM Certified Developer - XML and Related Technologies, V1.
 
Sham Jowsaki
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ajith,
Thanks for your prompt response.
Answers to your question
1. The output of the file format should be in XML format.
2. From that XML file, i have to convert into HTML and WML format using XSLT.
My requirement is as follows
I need to update the information daily without entering data (info) on my own rather I have to get those information (like bullion rates, currency rates etc..) from some other external provider. So I am in need of getting a XML document if i run an any program.
Pls give your valuable reply and guide me.
Thanks
Jowsaki
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your input document is in standard XML format, all you have to know is the document structure( a DTD or a Schema model ). Once you have the model figured out, the rest is simple. Simply parse the incoming XML document( either as a file or as a stream ) and search for the nodes that is of interest to your application.
The key is to determine if the document you are going to receive has a standard and reliable structure. Rest is standard XML parsing. I suggest you first get the document model resolved. Once you get started, may be you can post specific queries if you get to a roadblock on the way.
Good luck,
------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java�2 Platform.
IBM Certified Developer - XML and Related Technologies, V1.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic