void HttpLayer::addSprite(const char * xmlString){
tinyxml2::XMLDocument doc;
doc.Parse(xmlString);//用这种方式读取char*类型的东西
tinyxml2::XMLElement * root = doc.RootElement();
tinyxml2::XMLElement * item = root->FirstChildElement();
int x = 0,y =0;
const char * fileName = nullptr;
do{
x =item->IntAttribute("X");
y = item->IntAttribute("Y");
fileName = item->Attribute("FILENAME");
auto sp = Sprite::create(fileName);
sp->setPosition(x,y);
this->addChild(sp);
item = item->NextSiblingElement();//
}while(item);
}