Reads a text-only element with a given name and namespace URI.
[Visual Basic] Overloads Public Function ReadString( _ ByVal name As String, _ ByVal ns As String _ ) As String [C#] public string ReadString( string name, string ns ); [C++] public: String* ReadString( String* name, String* ns ); [JScript] public function ReadString( name : String, ns : String ) : String;
The text contained in the element that was read. If the element was empty (i.e. of the form
Exceptions
Exception Type | Condition |
---|---|
XmlException | If the input is not of the form |
A call to this method corresponds to a call to CheckStartTag followed by a call to ReadString.
XmlReader Class | XmlReader Members | System.Xml Namespace | XmlReader.ReadString Overload List | ReadString | ReadString | ReadString