mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
change xml options (#875)
This commit is contained in:
parent
9d37011683
commit
86e80a9164
@ -43,6 +43,9 @@ public class POIXMLTypeLoader {
|
||||
DEFAULT_XML_OPTIONS.setCharacterEncoding("UTF-8");
|
||||
DEFAULT_XML_OPTIONS.setDisallowDocTypeDeclaration(true);
|
||||
DEFAULT_XML_OPTIONS.setEntityExpansionLimit(1);
|
||||
DEFAULT_XML_OPTIONS.setLoadStripProcinsts(true);
|
||||
DEFAULT_XML_OPTIONS.setLoadStripComments(true);
|
||||
|
||||
// JAXP is used for parsing
|
||||
// so only user code using XmlObject/XmlToken.Factory.parse
|
||||
// directly can bypass the entity check, which is probably unlikely (... and not within our responsibility :))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user