[jdom-interest] How to find out which parser is being used

Elliotte Rusty Harold elharo at metalab.unc.edu
Tue Dec 10 16:20:45 PST 2002


At 9:36 AM -0500 12/10/02, David Kavanagh wrote:


>    org.apache.crimson.parser.XMLReaderImpl    - for the crimson parser
>You can assume that with JDK1.4 and greater, crimson is being used 
>by default. You could replace it by setting the above property.


In Java 1.4 and probably 1.4.1, yes. However, later versions (or 
versions from different vendors) are likely to use Xerces instead. 
Bottom line: if you really care which parser is used, specify it 
explicitly.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          XML in a  Nutshell, 2nd Edition (O'Reilly, 2002)          |
|              http://www.cafeconleche.org/books/xian2/              |
|  http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+



More information about the jdom-interest mailing list