Gets an XML DOM representation of this Response.
Namespace: Facilita.WebAssembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.8.37 (1.0.0.0)
Syntax
Field Value
An XML DOM representation of this Response.Exceptions
Exception | Condition |
---|---|
System Exception | Unable to represent this Response as an XML document, possibly because it is not valid XML. |
Examples
The content of the HTTP Response object:
<html>
<body>
<form name="myForm">
Select:
<select name="mySelect">
<option value="1">1</option>
<option value="2">2</option>
</select>
</form>
</body>
</html>
System.Xml.XmlNodeList optionList = response.ContentAsXml.SelectNodes("//form[@name='myForm']/select[@name='mySelect']/option"); // This outputs "1", "2" foreach (System.Xml.XmlNode optionNode in optionList) { WriteMessage(optionNode.Attributes["value"].InnerText); }
See Also