XmlReaderProperty_MaxEntityExpansion

 

This property allows the user to set the maximum number of entities that resolve to three or more characters. The type of this property is integer.

Default Value

100,000

Remarks

This property can be set and retrieved by using the IXmlReader::SetProperty and IXmlReader::GetProperty methods.

Character entities and entities that resolve to 2 characters are not counted. This feature allows users to mitigate against Document Type Definition (DTD) entity expansion attacks. The maximum number includes both general entities and parameter entities.

A value of 0 specifies that entity expansion is not limited.

Requirements

Header: XmlLite.h

Library: XmlLite.lib

See Also

IXmlReader Properties
XmlReaderProperty_MaxElementDepth