Return-Path: X-Original-To: apmail-axis-c-dev-archive@www.apache.org Delivered-To: apmail-axis-c-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E594A9BD1 for ; Wed, 6 Mar 2013 18:20:14 +0000 (UTC) Received: (qmail 51031 invoked by uid 500); 6 Mar 2013 18:20:14 -0000 Delivered-To: apmail-axis-c-dev-archive@axis.apache.org Received: (qmail 50575 invoked by uid 500); 6 Mar 2013 18:20:13 -0000 Mailing-List: contact c-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list c-dev@axis.apache.org Received: (qmail 50450 invoked by uid 99); 6 Mar 2013 18:20:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 18:20:13 +0000 Date: Wed, 6 Mar 2013 18:20:13 +0000 (UTC) From: "Wes Munsil (JIRA)" To: c-dev@axis.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AXIS2C-1627) Serialization puts ampersands, etc. in attribute values, instead of entity references. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2C-1627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wes Munsil updated AXIS2C-1627: ------------------------------- Component/s: guththila > Serialization puts ampersands, etc. in attribute values, instead of entity references. > -------------------------------------------------------------------------------------- > > Key: AXIS2C-1627 > URL: https://issues.apache.org/jira/browse/AXIS2C-1627 > Project: Axis2-C > Issue Type: Bug > Components: guththila, xml/parser > Affects Versions: 1.6.0 > Environment: Linux > Reporter: Wes Munsil > Priority: Blocker > > Serialization puts ampersands, etc. in attribute values, instead of entity references. This causes XML that is not well-formed to be returned to the client. > The result of this code > axiom_namespace_t * ns = axiom_namespace_create(env, "namespace", "ns"); > > axiom_node_t * node; > axiom_element_t * element = axiom_element_create(env, NULL, "el", ns, &node); > > axiom_element_set_text(element, env, "T1 & T2", node); > axiom_element_add_attribute(element, env, axiom_attribute_create(env, "name", "A1 & A2", NULL), node); > > axis2_char_t * xml = axiom_node_to_string(node, env); > > AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "XML is %s", xml); > AXIS2_FREE(env->allocator, xml); > is this: > XML is T1 & T2 > Note that the & in the element body is correctly represented, but the & in the attribute value is not. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org For additional commands, e-mail: c-dev-help@axis.apache.org