ParseFile Method
Parses the file specified by FileName.
Syntax
[VB.NET] Public Sub ParseFile(ByVal FileName As String)
[C#] public void ParseFile(string fileName);
Remarks
The parser is Reset prior to parsing the file. If Validate is true, the parser checks that the document consists of well-formed XML.
When ParseFile is called, the appropriate events are fired as a result of the parsing process. Also, the XPath can be traversed in order to access specific parts of the document.
Example (Parse an XML File)
XMLpControl.ParseFile("C:\filename.xml")NOTE: This method has a corresponding asynchronous version (ParseFileAsync) for use in the Xamarin environment.