This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implementation Dependancy of DOM and SAX

 
Ajit Kanada
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Does any one here knows the meaning of "Implementation Dependancy of DOM and SAX Parser".
Actually i have to do a comparison of diferent parsers for above topic.Any docs/links regarding implementation dependancy will be of great help.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Typically parsers that build DOM Document objects actually use a SAX parser to scan the input text. Thats why you get a SAXException from a DOM parser parse method.
Does that count as "Implementation Dependency"???
Bill
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ajit Kanada:
Actually i have to do a comparison of diferent parsers for above topic.
I can't figure out what is there to compare? If you use the JAXP API, there is no dependency to the implementation and that's it.
Of course, anything that is not provided by the standard JAXP API (e.g. schema validation in all but the latest versions of JAXP) is completely implementation-dependent.
Or am I missing something here?
 
Ajit Kanada
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Lasse Koskela
I am doing a study of 6 diff XML Parsers(All written in Java).
I need to find out the implementation dependency in thses parsers.
How do i do it?
I hope my question is clear.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ajit Kanada:
I hope my question is clear.

Well, if I'd only know what "implementation dependency" means...?
If it means just whether a given parser can be used through the standard JAXP APIs, then the answer should be right there in the parser's documentation. If it's something else, you'll have to define the term to us.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose you could compare the degree of support for various XML standards.
This page at the W3C could get you started on the various standards.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic