• 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 ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Difference in Xerces and JAXP  RSS feed

Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forgive me for asking I'm new to XML.. I have an understanding that Xerces and JAXP are both XML parsers, that have its own API's. They both implement certain standard W3 interfaces and hence return similar objects.
While learning, what should I use ? Do i need to know both of them ? Can I go from using one to the other easily ?
If I write a JAVA program to use JAXP, can I use XERCES to run it or are the classes different ?
Thanks for your help !
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
Yes Xerces is an XML parser but JAXP is not. Without a XML parser you cannot parse with JAXP. It simple provides means through which you "hook" to a parser. JAXP itself comes with an XML parser (SUN's XML parser), so that it is ready to use, but the parser itself is not part of JAXP. Using JAXP you can swap XML parsers without even recompiling your code. That's the beauty of JAXP. Check SUN site out for more info and/or tutorials.
Good luck.
Ambrose Tati
I child proofed my house but they still get in. Distract them with this tiny ad:
how do I do my own kindle-like thing - without amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!