Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 41976 invoked from network); 4 Oct 2005 07:03:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Oct 2005 07:03:21 -0000 Received: (qmail 91930 invoked by uid 500); 4 Oct 2005 07:03:20 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 91767 invoked by uid 500); 4 Oct 2005 07:03:19 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 91756 invoked by uid 500); 4 Oct 2005 07:03:19 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 91753 invoked by uid 99); 4 Oct 2005 07:03:19 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 04 Oct 2005 00:03:17 -0700 Received: (qmail 41887 invoked by uid 65534); 4 Oct 2005 07:02:57 -0000 Message-ID: <20051004070257.41886.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r293555 - /webservices/axis2/trunk/c/modules/test/om/src/test_om.c Date: Tue, 04 Oct 2005 07:02:57 -0000 To: axis2-cvs@ws.apache.org From: samisa@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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"); }