BrowserObj ToXML Method (.NET)

 

The ToXML methods return a XML string that represents the BrowserHawk properties and their associated values for the current browser request. Also supports the ability to add your own data names and values. This XML can then be used for various purposes, such as storing it to a database or using it as an XML data source.

 

Tip: See the toJSON-toXML.aspx sample included with BrowserHawk for more information.

 

Syntax:

 

bhObj.ToXML()

Returns an XML representation of all the BrowserObj properties and their associated values. The root element includes metadata about the capture including the BrowserHawk version, license level installed, edition, BDD version, and timestamp in the ISO 8601 format.

 

bhObj.ToXML(System.Collections.Hashtable)

Returns an XML representation of all the BrowserObj properties and their associated values. The root element includes metadata about the capture including the BrowserHawk version, license level installed, edition, BDD version, and timestamp in the ISO 8601 format. By passing a Hashtable object you can add additional attributes on the root, for example a user's login ID or department. It's left to the caller to ensure each key is a valid XML attribute name.

 

static BrowserObj.ToXML(BrowserObj, ExtendedBrowserObj)

Returns an XML representation of all the BrowserObj properties and their associated values for the BrowserObj, plus all the tested Extended properties and their associated values for the ExtendedBrowserObj. The root element includes metadata about the capture including the BrowserHawk version, license level installed, edition, BDD version, and timestamp in the ISO 8601 format.

 

static BrowserObj.ToXML(BrowserObj, ExtendedBrowserObj, HashTable)

Returns an XML representation of all the BrowserObj properties and their associated values for the BrowserObj, plus all the tested Extended properties and their associated values for the ExtendedBrowserObj. The root element includes metadata about the capture including the BrowserHawk version, license level installed, edition, BDD version, and timestamp in the ISO 8601 format. By passing a Hashtable object you can add additional attributes on the root, for example a user's login ID or department. It's left to the caller to ensure each key is a valid XML attribute name.

 

Seel Also:

ExtendedBrowserObj ToXML Method (.NET)

BrowserObj ToJSON Method (.NET)

XML Property (.NET)

MSXML Property (.NET)