if (in_array($element, $this->getMainNodes())) {
// Okay, main node found!
$methodName = 'startMenu' . $this->convertToClassName($element);
if (in_array($element, $this->getMainNodes())) {
// Okay, main node found!
$methodName = 'startMenu' . $this->convertToClassName($element);
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);
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);