예제 #1
0
void ParseXML::chars(const char* text, int textlen) {
	// The text is not zero terminated; thus we need the  length:
	string str(text, textlen);
	// The text is likely to have trailing white space, e.g. newline, etc
	stripTrailWhiteSpace(str);

	if (str.size())
		xmlData.insert(std::pair<string, string>(makeTag(), str));
}
예제 #2
0
파일: parseXML.cpp 프로젝트: yatesm/CPSC827
void ParseXML::chars(void *, const char *text, int textlen) {
    // The text is not zero terminated; thus we need the  length:
    std::string str(text, textlen);
    // The text is loaded with white space:
    stripTrailWhiteSpace(str);
    if (str.size()) {
        if (handle) (*handle)(str);
    }
}