/**
  * Handles the current node in the xml reading loop.
  * @param DOMNode $node The current xml node
  * @param Result $resultObj The object which will be returned to the end-user
  * @return boolean True if the node was handled
  */
 protected function handleXmlReaderCurrentNode(DOMNode $node, $resultObj)
 {
     if (parent::handleXmlReaderCurrentNode($node, $resultObj)) {
         return true;
     }
     switch ($node->nodeName) {
         case "user":
             $resultObj->setUserId($node->textContent);
             return true;
     }
     return false;
 }
 /**
  * Handles the current node in the xml reading loop.
  * @param DOMNode $node The current xml node
  * @param Result $resultObj The object which will be returned to the end-user
  * @return boolean True if the node was handled
  */
 protected function handleXmlReaderCurrentNode(DOMNode $node, $resultObj)
 {
     if (parent::handleXmlReaderCurrentNode($node, $resultObj)) {
         return true;
     }
     switch ($node->nodeName) {
         //items list
         case "profileresult":
             $this->readProfileResult($node, $resultObj);
             return true;
     }
     return false;
 }
 /**
  * Handles the current node in the xml reading loop.
  * @param DOMNode $node The current xml node
  * @param Result $resultObj The object which will be returned to the end-user
  * @return boolean True if the node was handled
  */
 protected function handleXmlReaderCurrentNode(DOMNode $node, $resultObj)
 {
     if (parent::handleXmlReaderCurrentNode($node, $resultObj)) {
         return true;
     }
     switch ($node->nodeName) {
         case "inputQuery":
             $resultObj->setInputQuery($node->textContent);
             return true;
             //items list
         //items list
         case "suggestions":
             $this->readProfileResult($node, $resultObj);
             return true;
     }
     return false;
 }