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.


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.

Header: XmlLite.h

Library: XmlLite.lib

IXmlReader Properties