ProNoob
ProNoob

Reputation: 39

Changing entity expansion limit in Java Xerces DocumentBuilder

When creating a DocumentBuilder using Xerces java library, can we set our own Entity Expansion Limit ? By default the limit is set to 100,000 and I could not find a way to change this value.

Thanks.

Upvotes: 2

Views: 537

Answers (1)

bdoughan
bdoughan

Reputation: 149047

You should be able to set the System property entityExpansionLimit.

-DentityExpansionLimit=1234

Upvotes: 1

Related Questions