minchau 2004/05/03 08:21:15
Modified: java/samples/Pipe Pipe.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.12 +5 -3 xml-xalan/java/samples/Pipe/Pipe.java
Index: Pipe.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/samples/Pipe/Pipe.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- Pipe.java 17 Feb 2004 19:07:09 -0000 1.11
+++ Pipe.java 3 May 2004 15:21:15 -0000 1.12
@@ -68,8 +68,10 @@
tHandler2.setResult(new SAXResult(tHandler3));
// transformer3 outputs SAX events to the serializer.
- 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(System.out);
tHandler3.setResult(new SAXResult(serializer.asContentHandler()));
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]