GeeCON Prague 2014*
The moose likes XML and Related Technologies and the fly likes Default XML parser used in Java1. 4 or 1.5 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 "Default XML parser used in Java1. 4 or 1.5" Watch "Default XML parser used in Java1. 4 or 1.5" New topic
Author

Default XML parser used in Java1. 4 or 1.5

amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 513
Hello,
How would I know which is the default parser implementation a particular JDK is using.
I tried printing the javax.xml.parsers.DocumenBuilderFactory and javax.xml.parsers.SAXParserFactory.
Also I tried printing all the System properties to find out if any such property is present. But there was none.
Additionally API mentions it might check to see jaxp.properties in lib directory , which also is not present in the installation.
Am I missing something here?

Thanks,
Amit


Regards,
Amit
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

How about this?
amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 513
hi Paul,
thanks for your reply.
I tried and got "com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl" that means the Xerces parser.
Thank you once again for your help.

thanks and regards,
amit
 
GeeCON Prague 2014
 
subject: Default XML parser used in Java1. 4 or 1.5