これは私が試してきたことです:
pugi::xml_document doc;
pugi::xml_parse_result result = doc.load_file("Book.xml"); // need to change this
std::cout << "Load result: " << result.description() << ", mesh name: " << doc.child("mesh").attribute("name").value() << std::endl;
私はこのようなことをしたい:
URL url;
url = new URL("http://.....");
URLConnection ucon = url.openConnection();
ucon.connect();
pugi::xml_parse_result result = doc.load_file(url.openStream()); // need to change this
編集1:
どうやらこれは不可能です。 http://code.google.com/p/pugixml/issues/detail?id=116
では、どのように進めればよいのでしょうか。