CkPython
CkPython
Load XML from Local FilePath
Demonstrates how to load XML from a local XML file.Chilkat CkPython Downloads
import sys
import chilkat
success = False
xml = chilkat.CkXml()
# 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):
print(xml.lastErrorText())
sys.exit()
print("Success.")