XmlReaderProperty_RandomAccess

 

Indicates whether the reader should use random access on the input stream. The type of this property is Boolean.

Default Value

FALSE

Remarks

Using random access can reduce memory allocation for the reader. If this property is set to TRUE, the reader will not cache the values of attributes while reading the start element tag. Instead, the reader will store the position of each attribute and seek back to get the value of the attribute if necessary. Returning attribute values in this way can reduce the amount of memory required, but may also slow down parsing.

This value should only be set to TRUE if the input stream supports random access (that is, supports Seek). By default, the value of this property is FALSE.

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

Requirements

Header: XmlLite.h

Library: XmlLite.lib

See Also

IXmlReader Properties