You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by ar...@apache.org on 2004/07/15 10:14:41 UTC
cvs commit: xml-xalan/java/src/org/apache/xml/serializer ToStream.java
aruny 2004/07/15 01:14:41
Modified: java/src/org/apache/xml/serializer ToStream.java
Log:
Description: Improper Serialization of document type declaration in xml document.
Revision Changes Path
1.31 +4 -13 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.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- ToStream.java 1 Jun 2004 22:43:30 -0000 1.30
+++ ToStream.java 15 Jul 2004 08:14:41 -0000 1.31
@@ -2233,20 +2233,11 @@
{
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("]>");
- else
- {
- writer.write('>');
+ if (!m_inDoctype){
+ writer.write("]>");
+ writer.write(m_lineSep, 0, m_lineSepLen);
}
-
- writer.write(m_lineSep, 0, m_lineSepLen);
}
catch (IOException e)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org