Class DOMIT_Lite_Parser

Description

Manages the generation of a DOMIT! document from SAX events

Located in /includes/domit/xml_domit_lite_parser.php (line 1637)


	
			
Variable Summary
Object $currentNode
boolean $inCDATASection
boolean $inTextNode
Object $lastChild
string $parseItem
boolean $preserveCDATA
Object $xmlDoc
Method Summary
void cdataElement (Object &$parser, string $data)
void dataElement (Object &$parser, string $data)
void defaultDataElement (Object &$parser, string $data)
void dumpTextNode ()
void endElement (Object &$parser, string $name)
boolean parse (Object &$myXMLDoc, string $xmlText, [boolean $preserveCDATA = true])
boolean parseSAXY (Object &$myXMLDoc, string $xmlText, boolean $preserveCDATA, mixed $definedEntities)
void startElement (Object &$parser, string $name, Array $attrs)
Variables
Object $currentNode = null (line 1641)
  • var: A reference to the current node in the parsing process
boolean $inCDATASection = false (line 1645)
  • var: True if currently parsing a CDATA Section
boolean $inTextNode = false (line 1647)
  • var: True if currently parsing a Text node
Object $lastChild = null (line 1643)
  • var: A reference to the last child in the parsing process
string $parseContainer = '' (line 1651)
  • var: A container for holding the currently parsed text data
string $parseItem = '' (line 1653)
  • var: The current docutype text
boolean $preserveCDATA (line 1649)
  • var: True is CDATA Section nodes are not to be converted into Text nodes
Object $xmlDoc = null (line 1639)
  • var: A reference to the resulting xmldoc
Methods
cdataElement (line 1790)

Catches a CDATA Section event and processes the text

void cdataElement (Object &$parser, string $data)
  • Object &$parser: A reference to the current SAX parser
  • string $data: The current text data
dataElement (line 1779)

Catches a data event and processes the text

void dataElement (Object &$parser, string $data)
  • Object &$parser: A reference to the current SAX parser
  • string $data: The current text data
defaultDataElement (line 1801)

Catches a default data event and processes the data

void defaultDataElement (Object &$parser, string $data)
  • Object &$parser: A reference to the current SAX parser
  • string $data: The current data
dumpTextNode (line 1736)

Generates and appends a new text node from the parseContainer text

void dumpTextNode ()
endElement (line 1766)

Catches an end element event and processes the data

void endElement (Object &$parser, string $name)
  • Object &$parser: A reference to the current SAX parser
  • string $name: The tag name of the current element
parse (line 1662)

Parses xml text using Expat

  • return: True if the parsing is successful
boolean parse (Object &$myXMLDoc, string $xmlText, [boolean $preserveCDATA = true])
  • Object &$myXMLDoc: A reference to the DOM document that the xml is to be parsed into
  • string $xmlText: The text to be parsed
  • boolean $preserveCDATA: True if CDATA Section nodes are not to be converted into Text nodes
parseSAXY (line 1708)

Parses xml text using SAXY

  • return: True if the parsing is successful
boolean parseSAXY (Object &$myXMLDoc, string $xmlText, boolean $preserveCDATA, mixed $definedEntities)
  • Object &$myXMLDoc: A reference to the DOM document that the xml is to be parsed into
  • string $xmlText: The text to be parsed
  • boolean $preserveCDATA: True if CDATA Section nodes are not to be converted into Text nodes
startElement (line 1750)

Catches a start element event and processes the data

void startElement (Object &$parser, string $name, Array $attrs)
  • Object &$parser: A reference to the current SAX parser
  • string $name: The tag name of the current element
  • Array $attrs: An array of the element attributes

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