Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Fl_XmlHandler Class Reference
[eFLTK XML module]

XML parser event handler (SAX). More...

#include <Fl_XmlHandler.h>

List of all members.

Public Methods

 Fl_XmlHandler ()
virtual ~Fl_XmlHandler ()
virtual void set_locator (Fl_XmlLocator **locator)
 The reader calls this function before it starts parsing the document. More...

virtual void start_document ()
 The reader calls this function when it starts parsing the document. More...

virtual void end_document ()
 The reader calls this function after it has finished parsing. More...

virtual void processing_instruction (const Fl_String &target, const Fl_String &data)
 The reader calls this function when it has parsed a processing instruction. More...

virtual void start_node (const Fl_String &name, const Fl_XmlAttributes &attrs)
 The reader calls this function when it has parsed a start element tag. More...

virtual void end_node (const Fl_String &name)
 The reader calls this function when it has parsed an end element (e.g. More...

virtual void cdata (const Fl_String &cdata)
 The reader calls this function, when it has parsed a character data. More...

virtual void comment (const Fl_String &comment)
 The parser calls this function, when it has parsed comment. More...

Fl_XmlDocTypedoctype ()
 Returns document type for parsed document. More...


Detailed Description

XML parser event handler (SAX).

re-implement this class and set to context event handler before loading file

Definition at line 17 of file Fl_XmlHandler.h.


Member Function Documentation

virtual void Fl_XmlHandler::cdata const Fl_String   cdata [inline, virtual]
 

The reader calls this function, when it has parsed a character data.

Entities are converted to their actual values before calling this.

Parameters:
cdata, parsed  character data

Definition at line 71 of file Fl_XmlHandler.h.

References cdata().

Referenced by cdata().

virtual void Fl_XmlHandler::comment const Fl_String   comment [inline, virtual]
 

The parser calls this function, when it has parsed comment.

Parameters:
comment, content  of comment

Definition at line 77 of file Fl_XmlHandler.h.

References comment().

Referenced by comment().

Fl_XmlDocType& Fl_XmlHandler::doctype   [inline]
 

Returns document type for parsed document.

Entities are stored here.

Definition at line 83 of file Fl_XmlHandler.h.

virtual void Fl_XmlHandler::end_document   [inline, virtual]
 

The reader calls this function after it has finished parsing.

It is called only once, and is the last handler function called. It is called after the reader has read all input.

Definition at line 41 of file Fl_XmlHandler.h.

virtual void Fl_XmlHandler::end_node const Fl_String   name [inline, virtual]
 

The reader calls this function when it has parsed an end element (e.g.

</mytag>) tag.

Parameters:
name, name  of parsed end tag.

Definition at line 64 of file Fl_XmlHandler.h.

virtual void Fl_XmlHandler::processing_instruction const Fl_String   target,
const Fl_String   data
[inline, virtual]
 

The reader calls this function when it has parsed a processing instruction.

Parameters:
target  is the target name of the processing instruction.
data  is the data in the processing instruction.

Definition at line 48 of file Fl_XmlHandler.h.

virtual void Fl_XmlHandler::set_locator Fl_XmlLocator **    locator [inline, virtual]
 

The reader calls this function before it starts parsing the document.

The argument locator is a pointer to a Fl_XmlLocator which allows the application to get the parsing position within the document.

Definition at line 28 of file Fl_XmlHandler.h.

virtual void Fl_XmlHandler::start_document   [inline, virtual]
 

The reader calls this function when it starts parsing the document.

The reader calls this function only once.

Definition at line 34 of file Fl_XmlHandler.h.

virtual void Fl_XmlHandler::start_node const Fl_String   name,
const Fl_XmlAttributes   attrs
[inline, virtual]
 

The reader calls this function when it has parsed a start element tag.

There is a corresponding end_node() call when the corresponding end element tag is read. start_node() and end_node() calls are always nested correctly. Empty element tags (e.g. <mytag/>) cause a start_node() call immediately followed by an end_node() call.

Parameters:
name, name  of parsed start tag
attrs, attribute  list that contains attributes of node.

Definition at line 58 of file Fl_XmlHandler.h.


The documentation for this class was generated from the following file:
Generated on Thu Jul 31 15:33:58 2003 for eFLTK by doxygen1.2.15