Sample code for 30+ languages & platforms
B4X

Load XML from Local FilePath

Demonstrates how to load XML from a local XML file.

Chilkat B4X Downloads

B4X
Dim success As Boolean = False

Dim xml As ChilkatXml
xml.Initialize

'  Pass either an absolute file path, or a file path relative from the current working directory of the caller.
success = xml.LoadXmlFile("qa_data/hamlet.xml")
If success = False Then
    Log(xml.LastErrorText)
    Return
End If


Log("Success.")