37 include_once
'./Services/Xml/classes/class.ilSaxParser.php';
38 include_once
'./webservice/soap/classes/class.ilXMLResultSet.php';
51 parent::__construct();
73 xml_set_object($a_xml_parser, $this);
74 xml_set_element_handler($a_xml_parser,
'handlerBeginTag',
'handlerEndTag');
75 xml_set_character_data_handler($a_xml_parser,
'handlerCharacterData');
97 $this->xmlResultSet->addColumn($a_attribs[
"name"]);
101 $this->xmlResultSet->addRow($this->currentRow);
102 $this->currentColumnIndex = 0;
119 $this->currentRow->setValue($this->currentColumnIndex, $this->cdata);
120 $this->currentColumnIndex++;
134 if ($a_data !=
"\n") {
136 $a_data = preg_replace(
"/\t+/",
" ", $a_data);
138 $this->cdata .= trim($a_data);
getXMLResultSet()
parsed result
Base class for sax-based expat parsing extended classes need to overwrite the method setHandlers and ...
setHandlers($a_xml_parser)
set event handlers
handlerEndTag($a_xml_parser, $a_name)
handler for end of element
handlerCharacterData($a_xml_parser, $a_data)
handler for character data
__construct($a_xml_data='')
Constructor.
handlerBeginTag($a_xml_parser, $a_name, $a_attribs)
handler for begin of element
setXMLContent($a_xml_content)