ã¡ãã£ã¨ã¡ã¢ ä»æ¥ã valgrind 使ã£ã¦ã¾ã libxml2 ã使ã£ã¦ä»¥ä¸ã®ãã㪠XML ã®ãã¼ã¹å¦çãæ¸ã #include <iostream> #include <sstream> #include <boost/shared_ptr.hpp> #include <libxml/xmlreader.h> static int read(void* in, char* buf, int len) { return static_cast<std::istream*>(in)->readsome(buf, len); } int main() { std::istringstream in("<a><b/>hoge<c/></a>"); boost::shared_ptr<xmlTextReader> reader(xmlReaderForIO(read, NULL, &in,
{{#tags}}- {{label}}
{{/tags}}