Solved

Java XML Xerces vs Jaxp

Posted on 2001-06-18
5
1,088 Views
Last Modified: 2012-05-04
I've been looking at both of these and would like to figure out what is the difference.

1.  Ex.  In using DOM are the api calls the same for any of the libraries? Meaning If I was to use Xerces to load an xml document will the code in the jaxp be the same minus the correct libraries to call.
Meaning is the api calls the same in xerces as it is in jaxp?

2. Any opinions on which of the two offers a better performance?  I've played with Xerces 1.x but very little sample or information that its kind of hard.  In Sun's site there are allot of documentation on Jaxp.  And I read that the xerces 2.x is going to be different so does that create a new learning curve again.

Thanks
0
Comment
Question by:borg48
  • 2
  • 2
5 Comments
 
LVL 15

Expert Comment

by:ozymandias
ID: 6201818
0
 

Author Comment

by:borg48
ID: 6202227
So is crimson a more up to date level library then xerces 1.0?

It seems to use the jaxp api in crimson so why not use jaxp? Any differences?

Are the api calls in jaxp the same for crimson since they both use the same dom, sax, etc level?  Meaning to open a dom document is it the same in jaxp as it is in crimson?

Thanks
0
 
LVL 6

Expert Comment

by:wbradney
ID: 6202336
borg48,

As far as I know JAXP isn't a parser implementation. It's a set of APIs that abstract the use of XML parsers, so that you can switch parsers without changing application code (like JMS does for messaging). Apache Crimson is _one_ particular _implementation_ of an XML parser that you get with the JAXP distribution, but it's not part of the API per se.

Other XML parsers that can be "plugged into" the JAXP APIs are Apache Xerces (1/2), Sun Project X, IBM XML4J, etc.

Regards,
WMB
0
 

Author Comment

by:borg48
ID: 6204204
Hi wbradney
  Excuse my ignorance in this but i'm just trying to clear up my understanding.  
So are  you saying that I can download the JAXP jar file and the xerces 2 jar file and program to the jaxp api.  Which in turn will use the xerces 2 api to do the actual parsing?
Is this a standard method of doing?

Does jaxp also use the xalan xslt for transformation?

Thanks for any input.
0
 
LVL 6

Accepted Solution

by:
wbradney earned 50 total points
ID: 6207106
borg48,

In theory, yes you should be able to use Xerces 2 through JAXP. In practice, since Xerces-2 is still very much under development, you may be disappointed.

This is what JAXP was meant to address - the abstract use of any (JAXP-compatible) XML parser, so that you can switch parsers without changing code.

As far as I know JAXP does not address XSLT, just XML parsing.

Regards,
WMB
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now