/** * read the story that contains the information about hidden content * @param string $backingStoryId * @return boolean */ private function readXmlContentStory($backingStoryId) { $xmlContentStory = $this->tempDir . '/Stories/Story_' . $backingStoryId . '.xml'; if (!file_exists($xmlContentStory)) { $this->idmlAssembler->getProgressUpdater()->setWarning($xmlContentStory . " does not exist."); return false; } // create ChaucerDOMDocument and DOMXPath objects $doc = new ChaucerDomDocument(); $b = $doc->load($xmlContentStory); if ($b === false) { return false; } $xpath = new DOMXPath($doc); $hiddentags = $xpath->query("//XMLElement[@MarkupTag='XMLTag/ChaucerHidden']"); for ($i = 0; $i < $hiddentags->length; $i++) { $tag = $hiddentags->item($i); $this->iterativelyGetHiddenIds($tag, $this->chaucerHidden); } return true; }