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!

XmlReader.ReadText

Reads a text node.

[Visual Basic]
Public Function ReadText() As String
[C#]
public string ReadText();
[C++]
public: String* ReadText();
[JScript]
public function ReadText() : String;

Return Value

The characters of the text and/or CDATA nodes or an empty string if no text or CDATA node was present.

Exceptions

Exception Type Condition
XmlException If incorrect XML is encountered in the input stream.

Remarks

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.

See Also

XmlReader Class | XmlReader Members | System.Xml Namespace | ReadString