Successfully parsed XML from memory in c