Class xmlparser

Description

Class comprising the functionality of an XML parser. You should build specific parsers by inheriting this class and building your custom handler methods to handle the XML content.

Located in /xml-defs.php (line 116)


	
			
Direct descendents
Class Description
 class application Class comprising the functionality of an application. This is used to contain and manage the basic configuration properties of an application. This class knows how to read the configuration in, store the values, and write it out again.
Variable Summary
 mixed $parser
 mixed $valid_xml
Method Summary
 xmlparser xmlparser ()
 void cdata (mixed $parser, mixed $cdata)
 boolean parse (string $xml)
 void tag_close (mixed $parser, mixed $tag)
 void tag_open (mixed $parser, mixed $tag, mixed $attributes)
Variables
mixed $error_message = "" (line 120)

Error message string if any

mixed $parser (line 118)

Parser object

mixed $valid_xml = false (line 122)

True if XML parsed correctly

Methods
Constructor xmlparser (line 125)

Construct a new parser.

xmlparser xmlparser ()
cdata (line 158)

Method invoked when character data is available

void cdata (mixed $parser, mixed $cdata)

Redefined in descendants as:
parse (line 138)

Parse the given XML document.

  • return: True if the XML was parsed as valid
boolean parse (string $xml)
  • string $xml: The content of the XML document to parse.

Redefined in descendants as:
tag_close (line 162)

Method invoked when a tag is closed

void tag_close (mixed $parser, mixed $tag)

Redefined in descendants as:
tag_open (line 154)

Method invoked when a tag is opened

void tag_open (mixed $parser, mixed $tag, mixed $attributes)

Redefined in descendants as:

Documentation generated by phpDocumentor 1.3.0RC3