Click or drag to resize

WebResponseValidatorValidateXmlResponse Method

Validates a WebResponse to be of type Xml.

Namespace:  NScrape
Assembly:  NScrape (in NScrape.dll) Version: 0.4.1.0
Syntax
public static XmlWebResponse ValidateXmlResponse(
	WebResponse response,
	string message
)

Parameters

response
Type: NScrapeWebResponse
The web response to be validated.
message
Type: SystemString
The error message to be used to generate an exception if the validation fails.

Return Value

Type: XmlWebResponse
The web response cast as an XmlWebResponse.
See Also