Find child by tag name and return contained text.
[Visual Basic] Public Function SearchForTextOfTag( _ ByVal tag As String _ ) As String [C#] public string SearchForTextOfTag( string tag ); [C++] public: String* SearchForTextOfTag( String* tag ); [JScript] public function SearchForTextOfTag( tag : String ) : String;
The text contents of the child element with the specified tag value.
For example, with XML as follows, SearchForTextOfTag("second") would be "text2".
<thetag A=123 B=456 C=789> <first>text1</first> <second>text2</second></thetag>
// this method is equivalent to the following
String SearchForTextOfTag(String tag){ SecurityElement element = this.SearchForChildByTag(tag); return element.Text;}
SecurityElement Class | SecurityElement Members | System.Security Namespace