PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2855

*** shadow/2855 Fri Jul 27 05:29:31 2001
--- shadow/2855.tmp.27573       Fri Jul 27 05:29:32 2001
***************
*** 0 ****
--- 1,35 ----
+ +============================================================================+
+ | DOM Serialization ignores settings in OutputFormat object.                 |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2855                        Product: Xerces-J                |
+ |       Status: NEW                         Version: 1.4.2                   |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Normal                   OS/Version: All                     |
+ |     Priority: Other                     Component: Serialization           |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                  |
+ |  Reported By: [EMAIL PROTECTED]                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Setting the OutputFormat as follows 
+ 
+ private void testSerialize (Document doc)
+ {
+       OutputFormat output = new OutputFormat ();
+       output.setVersion ("1.0");
+       output.setStandalone (true);
+       output.setDoctype (null, null);
+ 
+       StringWriter writer = new StringWriter ();     
+       DOMSerializer  serializer = new XMLSerializer (writer, 
+ output).asDOMSerializer ();
+       
+       serializer.serialize (doc);
+ }
+ 
+ then serializing a DOM instance that itself contains a DOCTYPE element results 
+ in the DOCTYPE element being present in the generated XML. The settings in the 
+ OutputFomat object appear to be ignored.

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

Reply via email to