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!

XmlNode.Text

The text of this node.

[Visual Basic]
Overridable Public Property Text As String
[C#]
public string Text {virtual get; virtual set;}
[C++]
public: __property virtual String* get_Text();
public: __property virtual void set_Text(String*);
[JScript]
public function get Text() : String;
public function set Text(String);

Exceptions

Exception Type Condition
InvalidOperationException When setting this property on an XmlDocument or an XmlHeader node.
ArgumentException When setting this property to a null string.

Remarks

The value of this property depends on the actual XmlNode class as follows:

Node type Value
XmlDocument A null reference.
XmlElement The in-order concatenation of the Text properties of each XmlElement, XmlText, and XmlCData child node. If the element has no such child nodes, the result is an empty string. Assigning to the property removes all child nodes and, if the new value is not an empty string, creates a single XmlText child node with the given text.
XmlText The characters of the text node.
XmlCData The characters of the CDATA node.
XmlComment The string of characters between the <!-- and--> delimiters, including leading and trailing whitespace.
XmlPI The string of characters starting with the first non-whitespace character after the processing instruction name and ending with the character immediately preceding the ?>.
XmlHeader A null reference.
XmlDocType The complete text of the document type declaration. The string always starts with the characters "<!DOCTYPE" and ends with the character ">".

See Also

XmlNode Class | XmlNode Members | System.Xml Namespace