public property entityExpansionLimit as Int:
Maximum general-entity expansions per parse (2500, as in JDK 25). Zero or a negative value explicitly disables this limit. Configuration is rejected with SAXNotSupportedException while parsing.
parser.entityExpansionLimit = 1000