You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by cm...@apache.org on 2014/10/17 10:40:36 UTC
[43/50] 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/remotes/origin/camel-2.13.x
Commit: 21ff698571bcfa04d59f93f044b243a7ab587dff
Parents: 246014f
Author: Willem Jiang <wi...@gmail.com>
Authored: Fri Oct 10 23:32:15 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
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) {