minchau 2004/07/22 14:43:18
Modified: java/src/org/apache/xml/serializer ToStream.java
Log:
Submitted by: Brian Minchau
Reviewed by: Henry Zongaro
Backing out the last code change by Arun because it breaks the smoketest.
The code I am backing out is definately wrong. The old code appears
to be correct to both myself and Henry Zongaro.
Waiting for a testcase to see what is wrong with the serialization code
and DOCTYPE. Future changes may be made.
- Brian Minchau
Revision Changes Path
1.32 +12 -3
xml-xalan/java/src/org/apache/xml/serializer/ToStream.java
Index: ToStream.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xml/serializer/ToStream.java,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- ToStream.java 15 Jul 2004 08:14:41 -0000 1.31
+++ ToStream.java 22 Jul 2004 21:43:18 -0000 1.32
@@ -2233,11 +2233,20 @@
{
try
{
+ if (m_needToOutputDocTypeDecl)
+ {
+ outputDocTypeDecl(m_elemContext.m_elementName, false);
+ m_needToOutputDocTypeDecl = false;
+ }
final java.io.Writer writer = m_writer;
- if (!m_inDoctype){
- writer.write("]>");
- writer.write(m_lineSep, 0, m_lineSepLen);
+ if (!m_inDoctype)
+ writer.write("]>");
+ else
+ {
+ writer.write('>');
}
+
+ writer.write(m_lineSep, 0, m_lineSepLen);
}
catch (IOException e)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]