This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new b30c737  Minor XML changes.
b30c737 is described below

commit b30c737b920f2c1b36b1a41113cabd8eccf7d8d2
Author: JamesBognar <[email protected]>
AuthorDate: Tue Apr 24 15:58:59 2018 -0400

    Minor XML changes.
---
 .../juneau-marshall/src/main/java/org/apache/juneau/xml/XmlReader.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/xml/XmlReader.java
 
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/xml/XmlReader.java
index c703c20..cfbb6bc 100644
--- 
a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/xml/XmlReader.java
+++ 
b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/xml/XmlReader.java
@@ -50,7 +50,8 @@ public final class XmlReader implements XMLStreamReader, 
Positionable {
                        XMLInputFactory factory = XMLInputFactory.newInstance();
                        factory.setProperty(XMLInputFactory.IS_VALIDATING, 
validating);
                        factory.setProperty(XMLInputFactory.IS_COALESCING, 
true);
-                       
factory.setProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES, true);  // 
This usually has no effect anyway.
+                       
factory.setProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES, false);
+                       
factory.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, false);
                        if 
(factory.isPropertySupported(XMLInputFactory.REPORTER) && reporter != null)
                                factory.setProperty(XMLInputFactory.REPORTER, 
reporter);
                        if 
(factory.isPropertySupported(XMLInputFactory.RESOLVER) && resolver != null)

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to