Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

xml_event_parser Class Reference

Event-based parsing of xml data. More...

Inherits error_logger.

Inheritance diagram for xml_event_parser:

Inheritance graph
List of all members.

Public Methods

function xml_event_parser (&owner)

function parse (data)
 Parse data from string.

function parse_file (fname)
 Parse xml file.

function err (what, func='', line=0, file='', terminate=1)
 Log error.

Public Attributes

var xml_parser = 0
 XML parser descriptor.

var elements = array()
 Parent elements.

var depth = 0
 Depth level.

var owner

Detailed Description

Event-based parsing of xml data.

This class provides interface for event-based processing of xml file with known structure.

Classes-owners should declare functions to process open elements, close elements and CDATA inside elements.

Open elements handlers should have name such:

Close elements handlers should have name such: CDATA handlers should have name such: Case-folding is disabled. Short-name handlers called first. For example, for
some text
Calls will be xep_open_aa, xep_open_bb, xep_open_aa_bb, xep_close_bb, xep_close_aa_bb, xep_cdata_aa, xep_close_aa

Definition at line 49 of file xml_event_parser.php.

Constructor & Destructor Documentation

function xml_event_parser   owner


object  owner - class-owner

Definition at line 64 of file xml_event_parser.php.

Member Function Documentation

function parse data   

Parse data from string.

string  data - xml data to parse.

Definition at line 73 of file xml_event_parser.php.

function parse_file fname   

Parse xml file.

string  fname - name of xml file to parse

Definition at line 116 of file xml_event_parser.php.

function err what   ,
func    = '',
line    = 0,
file    = '',
terminate    = 1

Log error.

what  - error reason
func  - function name in which an error had uccured
line  - source line
file  - name of source file
terminate  - 1 to terminate script processing

Definition at line 23 of file error_logger.php.

Referenced by user_auth::authentificate(), cache_container::clear(), model_querry::get(), cache_container::get(), models::get_info(), models::get_relations(), xml_event_parser_user::import(), model_explore::import(), enviroment::location(), xml_structure_builder::parse(), parse(), xml_structure_builder::parse_file(), parse_file(), models::pre_cache(), template_handler::process_file(), enviroment::process_locations(), model_explore::process_template(), enviroment::process_template(), and models::read_cache().

The documentation for this class was generated from the following file:
Generated on Tue Mar 11 08:35:19 2003 for SES by doxygen1.2.16