Class dom_xmlrpc_parser

Description

The base parsing class

Located in /includes/domit/dom_xmlrpc_parser.php (line 24)


	
			
Direct descendents
Class Description
dom_xmlrpc_array_parser Handles SAX events to convert a DOM XML-RPC XML string into a PHP array
dom_xmlrpc_object_parser Handles SAX events to convert a DOM XML-RPC XML string into a PHP array
Variable Summary
Method Summary
void addValue (mixed $value)
void dataElement (object A $parser, string $data)
void endElement (object A $parser, string $name)
boolean parse (string $xmlText)
boolean parseSAXY (string $xmlText)
boolean parseXML (string $xmlText, [boolean $useSAXY = true])
void startElement (object A $parser, string $name, array $attrs)
Variables
object A $arrayDocument = null (line 26)
  • var: wrapper for methodCall and methodResponse arrays
string $charContainer = '' (line 28)
  • var: A temporary container for parsed string data
array $lastArray = array() (line 32)
  • var: A stack holding an hierarchical sequence of array references
array $lastArrayType = array() (line 30)
  • var: A stack holding an hierarchical list of arraytypes (i.e., 'array' or 'struct' or '__phpobject__')
array $lastStructName = array() (line 34)
  • var: A stack holding an hierarchical sequence of struct names
Methods
addValue (line 137)

Abstract method for adding an XML-RPC value to the results array

void addValue (mixed $value)
  • mixed $value: The value

Redefined in descendants as:
dataElement (line 146)

Abstract method for handling character data events

void dataElement (object A $parser, string $data)
  • object A $parser: reference to the SAX parser
  • string $data: The character data
endElement (line 129)

Abstract method for handling end element events

void endElement (object A $parser, string $name)
  • object A $parser: reference to the SAX parser
  • string $name: The name of the end element tag

Redefined in descendants as:
getArrayDocument (line 110)

Returns a reference to the array document

  • return: A reference to the array document
array &getArrayDocument ()
parse (line 67)

Invokes Expat to parse the XML text

  • return: True if the parsing was successful
boolean parse (string $xmlText)
  • string $xmlText: The XML text
parseSAXY (line 93)

Invokes SAXY to parse the XML text

  • return: True if the parsing was successful
boolean parseSAXY (string $xmlText)
  • string $xmlText: The XML text
parseXML (line 42)

Parses the supplied XML text

  • return: True if the parsing was successful
boolean parseXML (string $xmlText, [boolean $useSAXY = true])
  • string $xmlText: The XML text
  • boolean $useSAXY: True if SAXY is to be used
startElement (line 120)

Abstract method for handling start element events

void startElement (object A $parser, string $name, array $attrs)
  • object A $parser: reference to the SAX parser
  • string $name: The name of the start element tag
  • array $attrs: An array of attributes (never used by XML-RPC spec)

Redefined in descendants as:

Documentation generated on Fri, 4 Mar 2005 13:56:05 +1000 by phpDocumentor 1.3.0RC3