• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

XML Processor and XML Parser

 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the difference between XML Processor and XML Parser. This question is with regards to JAXP APIs, How does JAXP APIs becomes Parser independent (It still uses w3c dom classes for processing?) :roll:
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
According to the API, when you call the DocumentBuilderFactory newDocumentBuilder method, it can use a system property to determine which class to instantiate and return. Thats how JAXP can use different parsers.
Naturally - for this to work, the parser must fully support the org.w3c.dom package.
Bill
 
mini mehta
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Williams,
Is that means that parser underneath JAXP interfaces should be of type DOM. Can it be SAX type.
BTW what is difference between XML Processor and XML Parser?
Regards
Mini

Originally posted by William Brogden:
According to the API, when you call the DocumentBuilderFactory newDocumentBuilder method, it can use a system property to determine which class to instantiate and return. Thats how JAXP can use different parsers.
Naturally - for this to work, the parser must fully support the org.w3c.dom package.
Bill

 
"How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic