C
C
Load XML from Local FilePath
Demonstrates how to load XML from a local XML file.Chilkat C Downloads
#include <C_CkXml.h>
void ChilkatSample(void)
{
BOOL success;
HCkXml xml;
success = FALSE;
xml = CkXml_Create();
// Pass either an absolute file path, or a file path relative from the current working directory of the caller.
success = CkXml_LoadXmlFile(xml,"qa_data/hamlet.xml");
if (success == FALSE) {
printf("%s\n",CkXml_lastErrorText(xml));
CkXml_Dispose(xml);
return;
}
printf("Success.\n");
CkXml_Dispose(xml);
}