Each instance of the transformer gets a document with input like this:

<record>
        <blah/>
</record>

and then the stylesheet tells it to make:

<record2>
        <record>
                <blah/>
        </record>
</record2>

I don't see more than one root.

-----Original Message-----
From: Gary L Peskin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 26, 2001 2:06 PM
To: [EMAIL PROTECTED]
Subject: Re: org.xml.sax.SAXException: Can't have more than one root on
a DOM!


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