50 std::map<std::string, std::string> attrs;
55 while (ats[i] != NULL)
57 attrs[std::string((
const char*)ats[i])] = std::string((
const char*)ats[i+1]);
62 const std::string name((
const char*)fullname);
69 const std::string name((
const char*)fullname);
81 xmlSAXHandler my_handler;
82 ::memset(&my_handler,
'\0',
sizeof(xmlSAXHandler));
90 int res = 0, size = 1024;
92 xmlParserCtxtPtr ctx = xmlCreatePushParserCtxt(&my_handler, &_callback, chars, res, NULL);
96 stream.read(chars, size);
100 xmlParseChunk(ctx, chars, static_cast<int>(stream.gcount()), 1);
104 xmlParseChunk(ctx, chars, static_cast<int>(stream.gcount()), 0);