Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
XMLParserDOMHandler Class Reference
Inheritance diagram for XMLParserDOMHandler:
XMLParserHandler ONIXParserDOMHandler

Public Member Functions

 characterData ($parser, $data)
 
 endElement ($parser, $tag)
 
 getResult ()
 
 startElement ($parser, $tag, $attributes)
 
 XMLParserHandler ()
 
- Public Member Functions inherited from XMLParserHandler
 characterData ($parser, $data)
 
 endElement ($parser, $tag)
 
 getResult ()
 
 startElement ($parser, $tag, $attributes)
 

Public Attributes

 $currentData
 
 $currentNode
 
 $rootNode
 

Detailed Description

Default handler for XMLParser returning a simple DOM-style object. This handler parses an XML document into a tree structure of XMLNode objects.

See Also
XMLParser

Definition at line 22 of file XMLParserDOMHandler.inc.php.

Member Function Documentation

XMLParserDOMHandler::characterData (   $parser,
  $data 
)

Callback function to act as the character data handler.

Parameters
$parserXMLParser
$datastring

Definition at line 92 of file XMLParserDOMHandler.inc.php.

XMLParserDOMHandler::endElement (   $parser,
  $tag 
)

Callback function to act as the end element handler.

Parameters
$parserXMLParser
$tagstring

Definition at line 81 of file XMLParserDOMHandler.inc.php.

XMLParserDOMHandler::getResult ( )

Returns a reference to the root node of the tree representing the document.

Returns
XMLNode

Definition at line 100 of file XMLParserDOMHandler.inc.php.

XMLParserDOMHandler::startElement (   $parser,
  $tag,
  $attributes 
)

Callback function to act as the start element handler.

Parameters
$parserXMLParser
$tagstring
$attributesarray

Definition at line 60 of file XMLParserDOMHandler.inc.php.

XMLParserDOMHandler::XMLParserHandler ( )

Constructor.

Definition at line 45 of file XMLParserDOMHandler.inc.php.

Member Data Documentation

reference XMLParserDOMHandler::$currentData

to the current data

Definition at line 40 of file XMLParserDOMHandler.inc.php.

XMLNode XMLParserDOMHandler::$currentNode

reference to the node currently being parsed

Definition at line 34 of file XMLParserDOMHandler.inc.php.

XMLNode XMLParserDOMHandler::$rootNode

reference to the root node

Definition at line 28 of file XMLParserDOMHandler.inc.php.


The documentation for this class was generated from the following file: