Reads a text node.
[Visual Basic] Public Function ReadText() As String [C#] public string ReadText(); [C++] public: String* ReadText(); [JScript] public function ReadText() : String;
The characters of the text and/or CDATA nodes or an empty string if no text or CDATA node was present.
Exception Type | Condition |
---|---|
XmlException | If incorrect XML is encountered in the input stream. |
This method reads a sequence of text and CDATA nodes starting with the current node. The resulting value is a concatenation of the text contained in the nodes. If the reader is not positioned on a text or CDATA node, an empty string is returned.
XmlReader Class | XmlReader Members | System.Xml Namespace | ReadString