axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jayachan...@apache.org
Subject svn commit: r240240 - /webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/infoset/XMLConformanceUnit.java
Date Fri, 26 Aug 2005 13:26:17 GMT
Author: jayachandra
Date: Fri Aug 26 06:26:09 2005
New Revision: 240240

URL: http://svn.apache.org/viewcvs?rev=240240&view=rev
Log:
modified   XMLConformanceUnit.java

We should serialize the whole of the OMDocument than just the document element

Modified:
    webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/infoset/XMLConformanceUnit.java

Modified: webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/infoset/XMLConformanceUnit.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/infoset/XMLConformanceUnit.java?rev=240240&r1=240239&r2=240240&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/infoset/XMLConformanceUnit.java
(original)
+++ webservices/axis/trunk/java/modules/xml/test/org/apache/axis2/om/infoset/XMLConformanceUnit.java
Fri Aug 26 06:26:09 2005
@@ -17,6 +17,8 @@
 
 import org.apache.axis2.om.OMAbstractFactory;
 import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMDocument;
+import org.apache.axis2.om.impl.OMOutputImpl;
 import org.apache.axis2.om.impl.llom.builder.StAXOMBuilder;
 import org.apache.axis2.om.impl.llom.factory.OMXMLBuilderFactory;
 import org.custommonkey.xmlunit.Diff;
@@ -67,7 +69,8 @@
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         writer = XMLOutputFactory.newInstance().
                 createXMLStreamWriter(baos);
-        rootElement.serializeWithCache(writer);
+
+        ((OMDocument)rootElement.getParent()).serializeWithCache(new OMOutputImpl(writer));
 
         writer.flush();
         writer.close();



Mime
View raw message