ENTITY-EXPANSION-LIMIT attribute

Indicates the maximum number of entity substitutions the XML parser (either DOM or SAX) will permit in a document.

Data type: INTEGER

Access: Readable/Writable

Applies to: SAX-reader object handle, X-document object handle

By limiting the number of entity substitutions, use of this attribute prevents recursive entities from consuming system resources. The default value is 50,000. The attribute's value must be equal to or greater than 0; setting the attribute to a negative value will result in a runtime error. If the attribute is set to the Unknown value (?), the feature is off.

You can set this behavior globally by using the -entityExpansionLimit startup parameter. The default value of the attribute is set by the startup parameter, but you can change the attribute as needed to override the behavior set by the startup parameter. See the OpenEdge Deployment: Startup Command and Parameter Reference for more information.