[jdom-interest] JDOM, Resin 2.0.13 org.jdom.*

John Rosocha john at clandecadence.com
Fri May 13 16:30:26 PDT 2005


Thank you all for your help. I now have a better understanding of how
JDOM works  (and the world will have an indexed solution to this kind of
problem)

The final fix included this one line:

org.jdom.input.SAXBuilder domSaxBuilder = new
org.jdom.input.SAXBuilder("org.apache.xerces.parsers.SAXParser");



> Yes, if you have JAXP you use the JAXP mechanism of setting a system 
> property, or you can pass the SAX driver class name to the SAXBuilder 
> constructor.
>
> -jh-
>
> John Rosocha wrote:
>
>> Is there a means implicitly set the SAX parser used in JDOM?
>>
>> Tatu Saloranta wrote:
>>
>>> --- John Rosocha <john at clandecadence.com> wrote:
>>>  
>>>
>>>> I've read this thread. It suggests that the problem
>>>> is Neko. In my example I am using org.jdom.input.SAXBuilder(). Is
>>>> that not part of JDOM? Or is some oter library being called in some
>>>> fashion?
>>>>   
>>>
>>>
>>>
>>> Well, that method just uses the default SAX parser
>>> implementation, obtained via JAXP. So the instance
>>> will not be created by JDom, just used by JDom.
>>>
>>>  
>>>
>>>> I see calls to com.caucho.xml.* in the stack trace.
>>>> Does JDOM access outside parsers in some fashion?
>>>>   
>>>
>>>
>>>
>>> Yes: JDom is basically the tree model (builder,
>>> serializer) built on top of a low-level parser;
>>> typically Xerces or Crimson (default in JDK 1.4), but
>>> something else in your case.
>>>
>>> Apparently the one used in this case does not have
>>> namespace-handling enabled (or implemented...), and is
>>> producing local names namespace-aware processors (like
>>> JDom) apparently doesn't like (such local names are
>>> not legal in namespace-aware mode).
>>>
>>> -+ Tatu +-
>>>
>>>
>>> __________________________________________________
>>> Do You Yahoo!?
>>> Tired of spam?  Yahoo! Mail has the best spam protection around 
>>> http://mail.yahoo.com _______________________________________________
>>> To control your jdom-interest membership:
>>> http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com
>>>
>>>
>>>
>>>  
>>>
>>
>> _______________________________________________
>> To control your jdom-interest membership:
>> http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com
>>
>
>
>




More information about the jdom-interest mailing list