Patches for JDOMSource and JDOMResult (was: Re: [jdom-interest] JDOMResult silently absorbs document fragments)

Laurent Bihanic laurent.bihanic at atosorigin.com
Tue Aug 20 05:12:17 PDT 2002


Hi,

Attached are 2 patches (full source and cvs diff) for JDOMSource and 
JDOMResult that fix the following problems:

  - JDOMSource: Do no allocate a new XMLReader for every call to 
getXMLReader(). JDOMSource now allocates only one XMLReader and returns this 
instance for every call to getXMLReader(), thus allowing applications to 
access the XMLReader instance and configure it prior handing the JDOMSource to 
the XSL transformer.

  - JDOMResult: Support for transformation results that are not well-formed 
XML documents. JDOMResult now accepts node sets as result of transformations 
and make them available to the applications as a List of JDOM nodes (method 
getResult()). Existing methods dealing only with Documents have been marked as 
deprecated.

Markus, could you run a quick test to verify that the JDOMSource patch fixes 
your EntityResolver problem?
Elliotte, could you check the new JDOMResult interface and implementation?

TIA

Laurent
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transform-src.jar
Type: application/x-java-archive
Size: 9756 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20020820/422aede3/transform-src.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transform-diff.jar
Type: application/x-java-archive
Size: 5157 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20020820/422aede3/transform-diff.bin


More information about the jdom-interest mailing list