camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [6/6] git commit: CAMEL-7890 Enable the NamespaceAware option of SAXParserFactory in XmlConverter
Date Sat, 11 Oct 2014 05:58:18 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/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 <willem.jiang@gmail.com>
Authored: Fri Oct 10 23:32:15 2014 +0800
Committer: Willem Jiang <willem.jiang@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) {


Mime
View raw message