#include <saxparser.h>
DTD validation is supported with LibXML.)
One must provide a SAXHandler for this class to be useful.
Public Member Functions | |
SAXParser () | |
void | setHandler (SAXHandler *sh) |
bool | parse (const char *filename) |
int | getCurrentLineNumber () |
const char * | getErrorMessage () |
Protected Attributes | |
char | errortext [512] |
SAXHandler * | saxhandler |
void * | currentparser |
|
Constructor.
|
|
Returns the current line number in the input. Can be called from SAX handler code. |
|
Can be called after parse() returned false. Returns the error description. |
|
Parse XML input read from the given file. Methods of the SAX handler will be called as the parser processes the file. Returns false if there was an error; in that case use getErrorMessage() to learn the cause of the error. |
|
Install a SAX handler into the parser.
|
|
|
|
|
|
|