XMLDocument::Parse(const char * xml,size_ nbytes=(size_t)(-1))
#include "tinyxml2.h"
using namespace std;
int main()
{
static const char* xml =
"<XML_FILE>"
"<xml_data>Simple Block of Code to demonstrate Working of Parse() func. of tinyxml2</xml_data>"
"</XML_FILE>";
tinyxml2::XMLDocument doc;
doc.Parse(xml);
printf("Parsing of XML Successful");
return doc.ErrorID();
}
Comments