public final class AaltoInputProperties extends Object
XMLInputFactory
.Modifier and Type | Field and Description |
---|---|
static String |
P_RETAIN_ATTRIBUTE_GENERAL_ENTITIES
Feature controlling whether general entities in attributes are retained
as-is without processing (
true ) or replaced as per standard
XML processing rules (false ). |
Constructor and Description |
---|
AaltoInputProperties() |
public static final String P_RETAIN_ATTRIBUTE_GENERAL_ENTITIES
true
) or replaced as per standard
XML processing rules (false
).
If enabled, instead of regular General Entity expansion, possible general
entities in Attribute values will be left exactly as-is, with no processing;
as such they cannot be distinguished from regular textual content.
The main reason for enabling this non-standard property is to avoid errors in cases where content contains general entity references in attribute values, but no processing is allowed (for example, for security reasons).
Property defaults to false
for XML standard compliancy but may
be enabled to avoid processing errors (but note that caller will necessarily
lose information as unexpanded entity cannot be distinguished from regular
attribute textual content).
Copyright © 2022 FasterXML. All rights reserved.