axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r293555 - /webservices/axis2/trunk/c/modules/test/om/src/test_om.c
Date Tue, 04 Oct 2005 07:02:57 GMT
Author: samisa
Date: Tue Oct  4 00:02:46 2005
New Revision: 293555

URL: http://svn.apache.org/viewcvs?rev=293555&view=rev
Log:
Added serialize testing

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

Modified: webservices/axis2/trunk/c/modules/test/om/src/test_om.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/test/om/src/test_om.c?rev=293555&r1=293554&r2=293555&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/test/om/src/test_om.c (original)
+++ webservices/axis2/trunk/c/modules/test/om/src/test_om.c Tue Oct  4 00:02:46 2005
@@ -12,23 +12,34 @@
     axis2_om_element_t *ele1, *ele2, *ele3;
     axis2_om_node_t *node1, *node2, *node3;
     axis2_om_attribute_t *attr1, *attr2;
-    axis2_om_namespace_t *ns1, *ns2;
+    axis2_om_namespace_t *ns1, *ns2, *ns3;
+    axis2_om_output_t* om_output;
 
-
-    ns1 = axis2_om_namespace_create ("ns", "test");
+    ns1 = axis2_om_namespace_create ("ns1", "test1");
+    ns2 = axis2_om_namespace_create ("ns2", "test2");
+    ns3 = axis2_om_namespace_create ("ns3", "test3");
+    
     ele1 = axis2_om_element_create (NULL, "root", ns1, node1);
+    ele2 = axis2_om_element_create (node1, "ele1", ns2, node2);
 
-    ns2 = axis2_om_namespace_create ("ns1", "test1");
-    ele2 = axis2_om_element_create (ele1, "ele1", ns2, node1);
-
-    attr1 = axis2_om_attribute_create ("ele1", "attr1", ns2);
+    //attr1 = axis2_om_attribute_create ("ele1", "attr1", ns2);
+    //axis2_om_element_add_attribute (ele2, attr1);
+    
 
-    axis2_om_element_add_attribute (ele2, attr1);
 
+    ele3 = axis2_om_element_create (NULL, "ele3",ns3 , node3);
 
-    ele3 = axis2_om_element_create (NULL, "ele3", ns2, node3);
+    if (ele3->ns)
+        printf("%s\n",ele3->ns->uri);
+    else
+        printf("ns null\n");
 
-    axis2_om_node_add_child (node1, node2);
+    //axis2_om_node_add_child (node1, node3);
 
-    printf("DONE\n");
+    // serializing stuff
+     om_output = axis2_create_om_output(stdout);
+     axis2_om_element_serialize_start_part(ele3, om_output);
+    // end serializing stuff
+    
+    printf("\nDONE\n");
 }



Mime
View raw message