#include <Fl_XmlParser.h>
Public Methods | |
void | handler (Fl_XmlHandler *handler) |
Sets the SAX event handler. More... | |
Fl_XmlHandler * | handler () const |
Returns current SAX event handler, NULL if none specific. | |
Static Public Methods | |
Fl_XmlDoc * | create_dom (Fl_XmlTokenizer &tokenizer, Fl_XmlLocator *locator=0, bool html_mode=false) |
Parse new XML/HTML document from stream. More... | |
Fl_XmlDoc * | create_dom (const char *buffer, int buffer_len, Fl_XmlLocator *locator=0, bool html_mode=false) |
Parse new XML/HTML document from stream. More... | |
Fl_XmlDoc * | create_dom (FILE *fp, Fl_XmlLocator *locator=0, bool html_mode=false) |
Parse new XML/HTML document from stream. More... | |
bool | create_sax (Fl_XmlHandler &handler, Fl_XmlTokenizer &tokenizer, bool html_mode=false) |
Parse XML/HTML document in SAX mode. More... | |
bool | create_sax (Fl_XmlHandler &handler, const char *buffer, int buffer_len, bool html_mode=false) |
Parse XML/HTML document in SAX mode. More... | |
bool | create_sax (Fl_XmlHandler &handler, FILE *fp, bool html_mode=false) |
Parse XML/HTML document in SAX mode. More... | |
Protected Methods | |
Fl_XmlParser (Fl_XmlTokenizer &tokenizer) | |
Create new parser. More... | |
bool | parse_document (Fl_XmlDoc *doc) |
Parse subnodes until end-of-stream. | |
bool | parse_doctype (Fl_XmlDocType *doc) |
Parse doctype declaration. | |
bool | parse_node (Fl_XmlDoc *doc, Fl_XmlNode *node) |
Parse a node and its subnodes. | |
bool | parse_attributes (Fl_XmlDoc *doc, Fl_XmlAttributes *attr) |
Parse an XML node attributes to attr. | |
bool | parse_comment (Fl_XmlNode *node) |
Parse a comment (). | |
void | html_mode (bool val) |
Turn HTML mode on/off. | |
bool | html_mode () const |
Return current mode of parser. | |
Friends | |
class | Fl_XmlTokenizer |
The parser is non-validating parser. It cannot handle external DTD's at all. Internal DTD's are partially handled, i.e. custom entities are parsed, though parameter entities are not supported. Parser expands entitied during parsing, so entity reference nodes are not supported either. I.e. cdata/attributes stored to node or send to SAX handler, are already expanded.
Definition at line 24 of file Fl_XmlParser.h.
|
Create new parser.
|
|
Parse new XML/HTML document from stream. throws Fl_XmlException on error and returns NULL. Caller is supposed to free returned Fl_XmlDoc with 'delete' operator. You can set own tokenizer, e.g. which reads data from net.
|
|
Parse new XML/HTML document from stream. throws Fl_XmlException on error and returns NULL. Caller is supposed to free returned Fl_XmlDoc with 'delete' operator.
|
|
Parse new XML/HTML document from stream. throws Fl_XmlException on error and returns NULL. Caller is supposed to free returned Fl_XmlDoc with 'delete' operator. You can set own tokenizer, e.g. which reads data from net.
|
|
Parse XML/HTML document in SAX mode. This is good for large XML documents, where keeping nodes in memory would take too much memory. While parsing document, handler methods are called.
|
|
Parse XML/HTML document in SAX mode. This is good for large XML documents, where keeping nodes in memory would take too much memory. While parsing document, handler methods are called.
|
|
Parse XML/HTML document in SAX mode. This is good for large XML documents, where keeping nodes in memory would take too much memory. While parsing document, handler methods are called.
|
|
Sets the SAX event handler. If handler is NULL, SAX events are ignored and nodes are stored to DOM tree.
Definition at line 98 of file Fl_XmlParser.h. |