ParseWeb Method
See Also Example Applies To
Executes a call to the remote server to fetch the XML document and may check the document is well formed and valid.
Syntax
object.ParseWeb (HTTPCall, CheckWellFormed)
| Part |
Description |
| object |
An object expression that evaluates to an XMLDOMParser object. |
| HTTPCall |
Required. XMLHTTPCall object with the defintion of the HTTP call to be made to the remote server. |
| CheckWellFormed |
Optional. A boolean that defines whether the parser should check the XML is "well formed". Defaults to True, i.e. will check the document is well-formed. |
Remarks
The default behaviour of this method is to check the document is well formed. The validation against a DTD is determined by the ValidationRule property.
Background
There are two checks that can be carried out on an XML file,
the first is to check the document is "well formed",
this means does it have all open tags closed, only one root element etc.
The second check is "is it valid",
this can be carried out by checking against a DTD and/or a schema. DTD validation checks that the right elements are in the right place.
This method actually executes the passed HTTPCall and then passes the resulting string to the ParseString method for well formed and validation checks.
|