$element = strtolower($element);
// Is the element a main node?
- /* DEBUG: */ echo "START: >".$element."<<br />\n";
+ //* DEBUG: */ echo "START: >".$element."<<br />\n";
if (in_array($element, $this->getMainNodes())) {
// Okay, main node found!
$methodName = 'startMenu' . $this->convertToClassName($element);
}
// Call method
- /* DEBUG: */ echo "call: ".$methodName."<br />\n";
+ //* DEBUG: */ echo "call: ".$methodName."<br />\n";
call_user_func_array(array($this, $methodName), $attributes);
}
$nodeName = strtolower($nodeName);
// Does this match with current main node?
- /* DEBUG: */ echo "END: >".$nodeName."<<br />\n";
+ //* DEBUG: */ echo "END: >".$nodeName."<<br />\n";
if (($nodeName != $this->getCurrMainNode()) && (in_array($nodeName, $this->getMainNodes()))) {
// Did not match!
throw new XmlNodeMismatchException (array($this, $nodeName, $this->getCurrMainNode()), XmlParser::EXCEPTION_XML_NODE_MISMATCH);
- } elseif (in_array($nodeName, $this->getSubNodes())) {
- // Silently ignore sub nodes
- return;
- }
+ } // END - if
// Construct method name
$methodName = 'finish' . $this->convertToClassName($nodeName);
// Call the corresponding method
- /* DEBUG: */ echo "call: ".$methodName."<br />\n";
+ //* DEBUG: */ echo "call: ".$methodName."<br />\n";
call_user_func_array(array($this->getMenuInstance(), $methodName), array());
}
* @param $resource XML parser resource (currently ignored)
* @param $characters Characters to handle
* @return void
- * @todo Find something usefull with this!
+ * @todo Find something useful with this!
*/
public function characterHandler ($resource, $characters) {
// Trim all spaces away