I need help on casting vkString* to vkString to store iXMLReader.GetElementID() in a variable of type vkString. Any help on this will be highly appreciated.
I am reading data from a XML file and need to compare node tag names before taking any action for which I need to store iXMLReader.GetElementID() in a variable. However iXMLReader.GetElementID() return vkString* type that can not be compared with string constant e.g. “Title”.
Below is the code snippet for your reference.
else if(xmlRead.IsLeafElement())
{
Print("LeafNode");
//Print(xmlRead.GetElementID()); //throws an error
//strTemp = xmlRead.GetElementID();//throws an error
if (xmlRead.GetElementID() == "Instructions") //throws an error
{
//Print("Instructions");
xmlRead.GetData(out);
Print(out);
}
errMsg = xmlRead.ReadNextAtom();
}



