[jdom-interest] DOMOutputter + DocType

Jason Hunter jhunter at xquery.com
Mon Feb 16 11:17:12 PST 2004


Bradley S. Huffman wrote:

> Elliotte Rusty Harold writes:
> 
> 
>>I'm not sure, but I'm not surprised to see a bug here. DocTypes in 
>>DOM are very tricky. They are read-only in very funny ways. Can you 
>>boil this down to a simple test case? (e.g. create a JDOM document 
>>with a DocType, convert to DOM, see bug.)
> 
> Looks like a bug in DOMOutputter, line 165 should be a no-op instead of
> throwing a exeception.
> 
> Brad

Added an else clause to ignore the DocType since it's handled in a 
special case earlier on.  Left the throw in case it's any other 
not-understood type.

Cybernd -- please try the latest in CVS and see if it works for you.

-jh-




More information about the jdom-interest mailing list