NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlTextReader.ResolveEntity

Resolves the entity reference for nodes of NodeType EntityReference.

[Visual Basic]
Overrides Public Sub ResolveEntity()
[C#]
public override void ResolveEntity();
[C++]
public: override void ResolveEntity();
[JScript]
public override function ResolveEntity();

Exceptions

Exception Type Condition
InvalidOperationException XmlReader is not positioned on an EntityReference node.

Remarks

If the node has NodeType of EntityReference, the entity replacement text will be parsed next and returned as child nodes. When the entity replacement text is finished, a new NodeType called "EndEntity" is returned to close the EntityReference scope.

If this method is not called, the entity reference is treated like a leaf node and the parser moves on. In this case, the entity is not parsed in context but it is validated.

See Also

XmlTextReader Class | XmlTextReader Members | System.NewXml Namespace