Language Reference Guide : System Classes : XMLDocument Class : ParseURL Method
 
Share this page          
ParseURL Method
The ParseURL method parses the given URL location (which also can contain a file name) and sets the RootElement attribute representing the tree-based XML document.
This method has the following syntax:
integer = XMLDocument.XMLDocument.ParseURL(urllocation = varchar(256)
          [, validateschema = integer[, schemacache = XMLSchemaCache]])
This method has the following parameters:
urllocation
(Required) Specifies the URL or file name to parse
validateschema
Specifies whether the method should validate the document against the referenced schema. Valid values are TRUE or FALSE. For more information, see XMLSchemaCache Class.
Default: FALSE
schemacache
Specifies the XMLSchemaCache used for schema validation. This parameter is used only if validateschema is TRUE. For more information, see XMLSchemaCache Class.
If the method is successful, it returns ER_OK; otherwise, it returns ER_FAIL. Descriptions of system constant values and their numeric equivalents are listed in Error Codes.