Mono Class Library: System.Xml.XmlTextReader Overview | Members

System.Xml.XmlTextReader.ReadAttributeValue Method

Parses an attribute value into one or more Text and EntityReference nodes. [Edit]

public override bool ReadAttributeValue ()

Returns

A bool where true indicates the attribute value was parsed, and false indicates the reader was not positioned on an attribute node or all the attribute values have been read. [Edit]

Remarks

The System.Xml.XmlTextReader class does not expand general entities; any encountered are returned as a single empty EntityReference node (XmlTextReader.Value is string.Empty).

Note:

Use this method after calling XmlTextReader.MoveToAttribute(string) to read through the text or entity reference nodes that make up the attribute value. The XmlTextReader.Depth of the attribute value nodes is one plus the depth of the attribute node. When general entity references are stepped into or out of, the XmlTextReader.Depth is incremented of decremented by one, respectively.

This method overrides XmlReader.ReadAttributeValue.

[Edit]

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0