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 ]
author and deputy
posted 12 years ago
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......