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();
Exception Type | Condition |
---|---|
InvalidOperationException | XmlReader is not positioned on an EntityReference node. |
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.
XmlTextReader Class | XmlTextReader Members | System.NewXml Namespace