Re: CForms Samples - saveDocument() function

2006-04-11 Thread Peter Sparkes
Hi Jeroen, Thanks, following up your advice and after looking at http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/transform/OutputKeys.html I tried transformer.setOutputProperty(Packages.javax.xml.transform.OutputKeys.DOCTYPE_SYSTEM, "marker.dtd"); However it does not insert the document ty

Re: CForms Samples - saveDocument() function

2006-04-11 Thread Jeroen Reijn
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 h

CForms Samples - saveDocument() function

2006-04-10 Thread Peter Sparkes
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 save