Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 72550 invoked from network); 21 Apr 2006 06:24:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Apr 2006 06:24:10 -0000 Received: (qmail 38814 invoked by uid 500); 21 Apr 2006 06:24:09 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 38801 invoked by uid 500); 21 Apr 2006 06:24:09 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 38790 invoked by uid 99); 21 Apr 2006 06:24:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2006 23:24:09 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2006 23:24:08 -0700 Received: from brutus (localhost.localdomain [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0AD927142E2 for ; Fri, 21 Apr 2006 06:23:06 +0000 (GMT) Message-ID: <6737539.1145600586025.JavaMail.jira@brutus> Date: Fri, 21 Apr 2006 06:23:06 +0000 (GMT+00:00) From: "Nandika Jayawardana (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Assigned: (AXIS2C-133) Wrong namespace attached to attributes In-Reply-To: <19030735.1145544965670.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2C-133?page=all ] Nandika Jayawardana reassigned AXIS2C-133: ------------------------------------------ Assign To: Nandika Jayawardana > Wrong namespace attached to attributes > -------------------------------------- > > Key: AXIS2C-133 > URL: http://issues.apache.org/jira/browse/AXIS2C-133 > Project: Axis2-C > Type: Bug > Components: xml/om > Versions: 0.90 > Environment: windows > Reporter: Ed Slattery > Assignee: Nandika Jayawardana > Priority: Minor > > When I serialize an axiom object model, the attributes of the root element which have no namespace associated will pick up the namespace of the previous attribute. The ns value is not cleared after use. > By nulling the ns variable at the end of the loop within routine axis2_om_stax_builder_process_attributes, this problem > gets fixed. > axis2_status_t > axis2_om_stax_builder_process_attributes (axis2_om_stax_builder_t *om_builder, > axis2_env_t **env, > axis2_om_node_t *element_node) > { > int i = 0; > ....... > ..... > . > if(attr_value) > AXIS2_XML_READER_XML_FREE(builder_impl->parser, env, attr_value); > ns = NULL; /* needs to be reset so that attributes with no namespace following those > with a namespace are not attached to the previous namespace */ > } > return status; > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira