Hi Peter,
I'm not completely sure but I guess you can change the function to ouput the
document type?
You can probably do this by adding an OutputProperty to the TransformerFactory.
I guess it should look something like:
transformer.setOutputProperty(OutputKeys.DOCTYPE_PUBLIC, "doctype");
I hope this helps.
Regards,
Reijn
Peter Sparkes wrote:
Hi,
I am using both loadDocument(uri) and saveDocument(document, uri)
functions from the CForm samples in webapp\samples\blocks\forms\flow.
The loadDocument(uri) functions loads xml documents together with their
document type declarations, however the saveDocument(document, uri)
function saves the documents without their document type declarations.
Does anyone, please, have a javascript function which will save xml
documents (DOM) with their document type declarations.
Thank you
Peter Sparkes
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Met vriendelijke groet,
Kind regards,
Jeroen Reijn
Hippo
Oosteinde 11
1017WT Amsterdam
The Netherlands
Tel +31 (0)20 5224466
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]