• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

newbie:Data retrieval from xml files

 
Holmes Wong
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, guys:
I am kind of new to xml processing. What I am trying to do is to get data
from xml files. For example:
<department id="1">
<employee id="222">
<name>smith</name>
<age>30</age>
</employee>
<employee ....>
.....
</employee>
.....
</department>
If I want to get a particular employee's name and age, what technology do I need to use to easily do this job? DOM? SAX2?
I need nice advice from you. If you have some good tutorials to jump start, please tell me. Thanks.

about them.
to use
[ October 30, 2003: Message edited by: Holmes Wong ]
 
Balaji Loganathan
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Holmes Wong:

If I want to get a particular employee's name and age, what technology do I need to use to easily do this job? DOM? SAX2?


Its depends on your XML files and your own requirements. Please see this link to know the comparsion between dom and sax http://www.sdc.iup.edu/outreach/fall2000/xml2/domvssax.html
If you search in google "dom vs sax" you will get lot of hits poiting to various article.
If you just want to read & display the xml data on a browser screen the XSL alone is enough. Visit http://www.w3schools.com and read the XML tutorial, thats the best start for beginners.
more question?? you can always ask here......
 
Space pants. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic