Simple XML reader.

package core

 Methods

Constructs the XML reader: parses the given data. Check $gleamed and $error after constructing.

__construct(string $xml_data) 

Parameters

$xml_data

string

The XML data

Standard PHP XML parser function.

endElement(object $parser) 

Parameters

$parser

object

The parser object (same as 'this')

Pull a portion of an XML tree structure back into textual XML.

pull_together(array $children) : string

Parameters

$children

array

Level of XML tree

Returns

stringThe combined XML

Standard PHP XML parser function.

startElement(object $parser, string $name, array $attributes) 

Parameters

$parser

object

The parser object (same as 'this')

$name

string

The name of the element found

$attributes

array

Array of attributes of the element

Standard PHP XML parser function.

startText(object $parser, string $data) 

Parameters

$parser

object

The parser object (same as 'this')

$data

string

The text

 Properties

 

$attribute_stack

$attribute_stack 

Default

 

$children_stack

$children_stack 

Default

 

$error

$error 

Default

 

$gleamed

$gleamed 

Default

 

$tag_stack

$tag_stack 

Default

 

$text_stack

$text_stack 

Default