I am able to read a xml from a file
eg.
xmlDoc *doc = NULL;
xmlNode *root = NULL;
doc = xmlReadFile("config.xml", NULL, 0);
root = xmlDocGetRootElement(doc);
But i want to read the XML from a char array not a file
can please any one tell me how to do it, example would be better.
Instead of xmlReadFile, use xmlReadMemory
http://xmlsoft.org/html/libxml-parser.html#xmlReadMemory