• 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

question about parsing XML using Xerces

 
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for reading my post.
I have some question about parsing XML,

-does XSD and DTD has the same role?
-I know that if i want to pars a document like :


I should have a code like:

But when my XML document is more sophisticated like :


what should i do?
Should i start reading the document elements one by one and test them to see whether it is student/teacher/worker.... or there is some easier way like case one that i can use to retrieve all students/teachers/workers..?

Thanks.
reply
    Bookmark Topic Watch Topic
  • New Topic