camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [2/2] git commit: CAMEL-7890 Enable the NamespaceAware option of SAXParserFactory in XmlConverter
Date Fri, 10 Oct 2014 15:33:14 GMT
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/c3715c4c
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c3715c4c
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c3715c4c

Branch: refs/heads/master
Commit: c3715c4ce27239ed9e05c14ad35730d092bdcee4
Parents: 3924c28
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Fri Oct 10 23:32:15 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Fri Oct 10 23:32:15 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/c3715c4c/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 cdef86c..7a6d61d 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
@@ -603,6 +603,7 @@ public class XmlConverter {
                     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) {


Mime
View raw message