Share via


XmlReaderProperty_MaxElementDepth (Compact 2013)

3/26/2014

This property lets the user set the maximum levels of nesting in elements. The type of this property is integer.

The default value is 256.

Remarks

This property can be set through the SetProperty (IXmlReader) method and retrieved through GetProperty (IXmlReader) method.

This property enables applications to set the levels of nesting to a reasonable number to avoid stack overflow issues. This is especially applicable in data models where elements nest themselves.

When entities resolve to elements, they are counted in the depth.

See Also

Reference

IXmlReader Properties
SetProperty (IXmlReader)
GetProperty (IXmlReader)
IXmlReader Methods