Resolves the entity reference for nodes of NodeType EntityReference.
[Visual Basic] MustOverride Public Sub ResolveEntity() [C#] public abstract void ResolveEntity(); [C++] public: virtual void ResolveEntity() = 0; [JScript] public abstract 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.
XmlReader Class | XmlReader Members | System.NewXml Namespace