pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1757693 - /pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java
Date Thu, 25 Aug 2016 14:36:10 GMT
Author: msahyoun
Date: Thu Aug 25 14:36:09 2016
New Revision: 1757693

URL: http://svn.apache.org/viewvc?rev=1757693&view=rev
Log:
PDFBOX-3471: set to ignore comments with DocumentBuilderFactory

Modified:
    pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java

Modified: pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java?rev=1757693&r1=1757692&r2=1757693&view=diff
==============================================================================
--- pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java (original)
+++ pdfbox/trunk/xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java Thu Aug 25 14:36:09
2016
@@ -84,6 +84,7 @@ public class DomXmpParser
             dbFactory.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd",
false);
             dbFactory.setXIncludeAware(false);
             dbFactory.setExpandEntityReferences(false);
+            dbFactory.setIgnoringComments(true);
             dbFactory.setNamespaceAware(true);
             dBuilder = dbFactory.newDocumentBuilder();
             nsFinder = new NamespaceFinder();



Mime
View raw message