Hi Dick,
   Please see my comments below.

On Jan 13, 2008 10:53 PM, Dick Deneer <[EMAIL PROTECTED]> wrote:
> You are also not serializing the Document but only the root.

I also think so, but still not able to find the correct way.

> I always use document = impl.createDocument(namespace, qualifiedName, null);
> to define the Document and root.

What is impl (i.e, which class it is bound to) ?.

I use JAXP, DocumentBuilder.newDocument() to get the Document object.

> I am not sure if in your case the root is actually connected to the
> document.

I also have a similar feeling.

But LSSerializer.write has following signature (copied from Xerces javadocs):

public boolean write(Node nodeArg, LSOutput destination)
                               throws LSException

Shouldn't the 1st argument be, Document ? (so we should be able to
serialize the whole Document object, including the internal DTD
subset). Should we ask for such an API enhancement?


-- 
Regards,
Mukul Gandhi

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to