#[cocos2d-x] HttpRequest , XML
Programming/Old
2016. 3. 6. 18:21
1. Header File#pragma once #include "tinyxml2\tinyxml2.h" #include "network/HttpClient.h" #include "cocos2d.h" using namespace tinyxml2; using namespace cocos2d::network; using namespace std; using namespace cocos2d; 2. Cpp File#include "XMLTest.h" void XMLTest::getXmlValue(const char* url) { HttpRequest *request = new HttpRequest(); request->setUrl(url); request->setRequestType(HttpRequest::Typ..