Visual Basic User's Guide > XML Basics
The sample program has only one menu item, which is Open File. Looking at the source code reveals nothing unusual: The main difference to the Open File routine in other Text Control sample programs is the Load method's Format parameter. It has a value of 10 to indicate that we want to laod an XML file:
[Visual Basic 6] With CommonDialog1 .Filter = "*.xml" .Flags = cdlOFNFileMustExist Or cdlOFNHideReadOnly .CancelError = True .ShowOpen If .FileName <> "" Then TXTextControl1.Load .FileName, , 10 End If End With
There is quite a bit happeing behind the scenes, however. If you load the TestFile.xml sample file, Text Control will not only load the xml file, but will
Let us take a closer look at the 3 files involved.