On Mon, 2008-01-14 at 09:35 +0530, Mukul Gandhi wrote: > 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? >
A clarification. A Document is a Node. i.e. (Document extends Node) The 'write' method can serialize a Document object of an XML instance or an 'Element'. As per your original query, I have not dealt with XML documents with internal DTD subset. But when using the Identity Transformation (which you are not, since you employ L&S) i had to set the public Id and System Id like this : transformer.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC, publicId); transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, systemId); I am not sure how this information would help you solve your problem, but just thought i would throw it out there. -Prashant --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]