aspose file tools*
The moose likes XML and Related Technologies and the fly likes Implementation Dependancy of DOM and SAX Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Implementation Dependancy of DOM and SAX" Watch "Implementation Dependancy of DOM and SAX" New topic
Author

Implementation Dependancy of DOM and SAX

Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95
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

Joined: Mar 22, 2000
Posts: 12836
    
    5
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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

Joined: Mar 22, 2000
Posts: 12836
    
    5
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
 
Don't get me started about those stupid light bulbs.
 
subject: Implementation Dependancy of DOM and SAX