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');
98 $this->xmlResultSet->addColumn ($a_attribs[
"name"]);
102 $this->xmlResultSet->addRow ($this->currentRow);
103 $this->currentColumnIndex = 0;
121 $this->currentRow->setValue ($this->currentColumnIndex, $this->cdata);
122 $this->currentColumnIndex ++;
139 $a_data = preg_replace(
"/\t+/",
" ",$a_data);
141 $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)