minchau 2004/05/03 08:20:00
Modified: java/samples/SAX2SAX SAX2SAX.java
Log:
Clean up related to bugzilla 24304.
There is no longer a space after the XML header. To keep the output
of this sample the same as before properties were set on the
serializer (indent="yes" and standalone="no" ).
Submitted by: Brian Minchau
Reviewed by: Sarah McNamara
Revision Changes Path
1.13 +5 -3 xml-xalan/java/samples/SAX2SAX/SAX2SAX.java
Index: SAX2SAX.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/samples/SAX2SAX/SAX2SAX.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- SAX2SAX.java 17 Feb 2004 19:07:48 -0000 1.12
+++ SAX2SAX.java 3 May 2004 15:20:00 -0000 1.13
@@ -84,8 +84,10 @@
FileOutputStream fos = new FileOutputStream("birds.out");
- Serializer serializer = SerializerFactory.getSerializer
-
(OutputPropertiesFactory.getDefaultMethodProperties("xml"));
+ java.util.Properties xmlProps =
OutputPropertiesFactory.getDefaultMethodProperties("xml");
+ xmlProps.setProperty("indent", "yes");
+ xmlProps.setProperty("standalone", "no");
+ Serializer serializer = SerializerFactory.getSerializer(xmlProps);
serializer.setOutputStream(fos);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]