Solved

Java XML Xerces vs Jaxp

Posted on 2001-06-18
5
1,110 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

786 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