You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2005/12/02 11:41:22 UTC

svn commit: r351667 - /webservices/axis2/trunk/c/test/om/src/test_om.c

Author: samisa
Date: Fri Dec  2 02:41:14 2005
New Revision: 351667

URL: http://svn.apache.org/viewcvs?rev=351667&view=rev
Log: (empty)

Modified:
    webservices/axis2/trunk/c/test/om/src/test_om.c

Modified: webservices/axis2/trunk/c/test/om/src/test_om.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/om/src/test_om.c?rev=351667&r1=351666&r2=351667&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/om/src/test_om.c (original)
+++ webservices/axis2/trunk/c/test/om/src/test_om.c Fri Dec  2 02:41:14 2005
@@ -146,7 +146,8 @@
     
     writer = axis2_xml_writer_create_for_memory(&environment, &buf, NULL, AXIS2_TRUE, 0);
     /*
-    writer = axis2_xml_writer_create(&environment, "finaltest.xml", NULL, AXIS2_TRUE, 0);
+    for guththila use following 
+    writer = axis2_xml_writer_create(&environment, NULL , NULL, AXIS2_TRUE, 0);
     */
     om_output = axis2_om_output_create (&environment, writer);
     AXIS2_OM_NODE_SERIALIZE (AXIS2_OM_DOCUMENT_GET_ROOT_ELEMENT(document, &environment), &environment , om_output);
@@ -196,6 +197,8 @@
     ns2 =
         axis2_om_namespace_create (&environment, "urn:ISBN:0-395-74341-6",
                                    "isbn");
+    ns3 =
+        axis2_om_namespace_create (&environment, "urn:w3-org-ns:HTML", "NULL");
 
     ele1 = axis2_om_element_create (&environment, NULL, "book", ns1, &node1);
     AXIS2_OM_ELEMENT_DECLARE_NAMESPACE(ele1,&environment,node1,ns2);
@@ -244,7 +247,7 @@
      axis2_om_output_free(om_output, &environment);
              
      printf("%s", buffer); 
-     AXIS2_FREE(environment->allocator, buffer); 
+    
      printf ("\nDONE\n");
 
     return 0;
@@ -269,3 +272,4 @@
     
     return 0;
  }
+