You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by el...@apache.org on 2002/02/01 18:23:27 UTC
cvs commit: xml-xerces/java/src/org/apache/xml/serialize XMLSerializer.java
elena 02/02/01 09:23:27
Modified: java/src/org/apache/xml/serialize XMLSerializer.java
Log:
Bug fix: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6165
Revision Changes Path
1.30 +15 -2 xml-xerces/java/src/org/apache/xml/serialize/XMLSerializer.java
Index: XMLSerializer.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xml/serialize/XMLSerializer.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- XMLSerializer.java 29 Jan 2002 01:15:20 -0000 1.29
+++ XMLSerializer.java 1 Feb 2002 17:23:27 -0000 1.30
@@ -127,7 +127,7 @@
* @author <a href="mailto:arkin@intalio.com">Assaf Arkin</a>
* @author <a href="mailto:rahul.srivastava@sun.com">Rahul Srivastava</a>
* @author Elena Litani IBM
- * @version $Revision: 1.29 $ $Date: 2002/01/29 01:15:20 $
+ * @version $Revision: 1.30 $ $Date: 2002/02/01 17:23:27 $
* @see Serializer
*/
public class XMLSerializer
@@ -239,6 +239,11 @@
String name;
String value;
boolean addNSAttr = false;
+
+ if (DEBUG) {
+ System.out.println("==>startElement("+namespaceURI+","+localName+
+ ","+rawName+")");
+ }
try {
if (_printer == null)
@@ -397,7 +402,6 @@
throws IOException
{
ElementState state;
- fNamespaceSupport.popContext();
if (DEBUG) {
System.out.println("==>endElement: " +rawName);
}
@@ -447,6 +451,11 @@
String name;
String value;
+
+ if (DEBUG) {
+ System.out.println("==>startElement("+tagName+")");
+ }
+
try {
if (_printer == null)
throw new IllegalStateException( "SER002 No writer supplied for serializer" );
@@ -1000,6 +1009,7 @@
serializeNode( child );
child = child.getNextSibling();
}
+ fNamespaceSupport.popContext();
endElementIO( null, null, tagName );
}
else {
@@ -1104,6 +1114,9 @@
String prefix;
int length;
+ if (attrs == null) {
+ return null;
+ }
length = attrs.getLength();
attrsOnly = new AttributesImpl( attrs );
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org