I have recently been trying to use TinyXML2 to read/write XML files, but I encountered a problem. I am trying to read a integer array that I exported from another program and it loads but TinyXML won't read integer arrays and I can't convert constant characters pointers to integers.
I want to separate comma separated values and store them in a array.
My code is as follows.
int GetMapData (const char* XMLFile) {
int mapdata[1];
XMLDocument File;
File.LoadFile(XMLFile);
const char* data = File.FirstChildElement("map")->FirstChildElement("layer")->FirstChildElement("data")->GetText();
}