[jdom-interest] How to find out which parser is being used
Christian Peter
cpeter at rostock.igd.fhg.de
Wed Dec 18 01:39:39 PST 2002
Hi David,
thanks for this hint, I'll try this. But obviously (since nobody
answered) there is no way to check for the currently used parser
from within the application (like DOMBuilder.getParser)? I would
feel much better if I could do this check and not relying on some
settings somewhere outside the app.
Christian
--
David Kavanagh wrote:
> Sort of. The VM will find its own parser before one you put in the
> classpath, or in the ext directory, but you can use the "endorsed
> standards override" mechanism to replace the parser. Look in the jdk1.4
> docs for the specifics. Certain APIs can have their implementation
> replaced. One of these is the XML parser. You pretty much create a
> directory under "jre/lib" called "endorsed" and put your jar there.
>
> David
>
> On 12/11/2002 3:09 AM, Christian Peter wrote:
>
>> Hi,
>>
>> so I take it that the parser which is first in the classpath is used?
>>
>> Thanks for the answer,
>>
>> Christian
>>
>> David Kavanagh wrote:
>>
>>> Should be able to set the system property:
>>> org.xml.sax.driver
>>> to something like
>>> 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.
>>>
>>> David
>>>
>>> On 12/10/2002 3:34 AM, Christian Peter wrote:
>>>
>>>> Hi all,
>>>>
>>>> when using DOMBuilder, is there a way to check which parser is being
>>>> used? And is it possible to explicitely set the parser which should
>>>> be used?
>>>>
>>>> Christian
>>>>
>>>> _______________________________________________
>>>> To control your jdom-interest membership:
>>>> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
>>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> _______________________________________________
>> To control your jdom-interest membership:
>> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
>>
>
>
>
>
More information about the jdom-interest
mailing list