/**
  * Handles the current node in the xml reading loop.
  * @param DOMNode $node The current xml node
  * @param GetSearchRecommendationResultBase $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 "didyoumean":
             //didyoumean string
             $this->readDidYouMean($node, $resultObj);
             return true;
         case "changepageoptions":
             //change page links
             $this->readChangePageOptions($node, $resultObj);
             return true;
         case "searchstatistics":
             $this->readSearchStatistics($node, $resultObj);
             return true;
     }
     return false;
 }
 /**
  * Handles the current node in the xml reading loop.
  * @param DOMNode $node The current xml node
  * @param GetItemRecommendationResult $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 "item":
             $resultObj->setItemId($node->textContent);
             return true;
         case "bundles":
             //bundles list
             foreach ($node->childNodes as $itemNode) {
                 if ($itemNode->nodeName == "item") {
                     $item = new BundleRecommendation();
                     readItem($itemNode, $item);
                     $resultObj->addRecommendedBundles($item);
                 }
             }
             return true;
     }
     return false;
 }