Unicode C++
Unicode C++
Convert HTML File to XML File
See more HTML-to-XML/Text Examples
Convert HTML file to XML file.Chilkat Unicode C++ Downloads
#include <CkHtmlToXmlW.h>
void ChilkatSample(void)
{
bool success = false;
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
CkHtmlToXmlW htmlToXml;
// Indicate the charset of the output XML we'll want.
htmlToXml.put_XmlCharset(L"utf-8");
success = htmlToXml.ConvertFile(L"test.html",L"out.xml");
if (success != true) {
wprintf(L"%s\n",htmlToXml.lastErrorText());
}
else {
wprintf(L"Success\n");
}
}