A DOM can have only one root node.  You're trying to create an output
DOM with more than one "top-level" node.  If you look at your output
using StreamSource, you'll see that you have more than one "top-level"
node.  This is not allowed for the DOM.

HTH,
Gary

"Shustef, Eugene" wrote:
> 
> Hi,
> 
> I am getting the following stack trace:
> 
> org.xml.sax.SAXException: Can't have more than one root on a DOM!
> ...
> This works fine with either SAXSource or StreamSource, however DOMSource
> blows up the second time
> handle() is called.
> 
> Thanks.

Reply via email to