This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 511
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: 18541
    
    8

How about this?
amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 511
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Default XML parser used in Java1. 4 or 1.5
 
Similar Threads
Sun XML Parser Vs Xerces
WSDL name and namespace
usage multipart.parser for userdefined parser
xml parsers does not read such a large file contents
problem in classpath and jar files and searching