Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2A9BC172B7 for ; Sat, 11 Oct 2014 05:58:14 +0000 (UTC) Received: (qmail 79202 invoked by uid 500); 11 Oct 2014 05:58:14 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 79155 invoked by uid 500); 11 Oct 2014 05:58:14 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 79055 invoked by uid 99); 11 Oct 2014 05:58:14 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Oct 2014 05:58:14 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id AC09981EC26; Sat, 11 Oct 2014 05:58:13 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ningjiang@apache.org To: commits@camel.apache.org Date: Sat, 11 Oct 2014 05:58:18 -0000 Message-Id: <7cb9d13b5cdf420f836b99392d06f1ce@git.apache.org> In-Reply-To: <47fd2bed5d2f47ed832360d0ca261f4e@git.apache.org> References: <47fd2bed5d2f47ed832360d0ca261f4e@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [6/6] git commit: CAMEL-7890 Enable the NamespaceAware option of SAXParserFactory in XmlConverter CAMEL-7890 Enable the NamespaceAware option of SAXParserFactory in XmlConverter Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/21ff6985 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/21ff6985 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/21ff6985 Branch: refs/heads/camel-2.13.x Commit: 21ff698571bcfa04d59f93f044b243a7ab587dff Parents: 246014f Author: Willem Jiang Authored: Fri Oct 10 23:32:15 2014 +0800 Committer: Willem Jiang Committed: Sat Oct 11 13:57:44 2014 +0800 ---------------------------------------------------------------------- .../src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/21ff6985/camel-core/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java b/camel-core/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java index 0532011..a3f4a29 100644 --- a/camel-core/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java +++ b/camel-core/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java @@ -579,6 +579,7 @@ public class XmlConverter { } catch (Exception e) { LOG.warn("SAXParser doesn't support the feature {} with value {}, due to {}.", new Object[]{javax.xml.XMLConstants.FEATURE_SECURE_PROCESSING, "true", e}); } + sfactory.setNamespaceAware(true); SAXParser parser = sfactory.newSAXParser(); xmlReader = parser.getXMLReader(); } catch (Exception ex) {