ParseFile Method
See Also Example Applies To
Gets a local XML file and may check the document is well formed.
Syntax
object.ParseFile (FileName, CheckWellFormed)
| Part |
Description |
| object |
An object expression that evaluates to an XMLSAXParser object. |
| FileName |
Required. A string with the name of the local file to parse. |
| 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. No validation against a DTD can be carried out using this object.
Background
This method uses simple visual basic file access functions and therefore is restricted to files on local or mapped drives.
This method actually loads the contents of the file into a string and then passes it to the ParseString method for the well formed check.
|