Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXP-compliant XML parser

 
mini mehta
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Sorry, to ask such a basic question. But does somebody knows what does the phrase "JAXP-compliant XML parser " means? Is it DOM or SAX parser? or does it represents both?

Regards
mini
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAXP is a standard API for processing XML documents in Java using both DOM and SAX. Thus, a JAXP-compliant parser would be a parser that implements the hooks required by the JAXP specification so that the developer can write his XML processing code without importing any parser-specific packages -- the implementation is selected at runtime and used through these "hooks" behind the scenes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic