The sax class is a base class for a SAX-style parser. To use this class, you should create a class that inherits from one if its immediate children and implements the protected virtual methods of that class.
Parses generic input "in" and calls the appropriate callback when tags, attributes, text, etc. are encountered.
Returns true on success or false otherwise.
Reimplemented in xmldom, propdom, jsondom, inidom, and csvdom.
virtual bool sax::parseFile |
( |
const char * |
filename | ) |
|
|
virtual |
Parses file "filename" and calls the appropriate callback when tags, attributes, text, etc. are encountered.
Returns true on success or false otherwise.
Reimplemented in xmldom, propdom, jsondom, inidom, and csvdom.
virtual bool sax::parseString |
( |
const char * |
string | ) |
|
|
virtual |
Parses "string" and calls the appropriate callback when tags, attributes, text, etc. are encountered.
Returns true on success or false otherwise.
Reimplemented in xmldom, propdom, jsondom, inidom, and csvdom.