protected function processSharedStringsItem($xmlReader, $sharedStringIndex)
    {
        $sharedStringValue = '';

        // NOTE: expand() will automatically decode all XML entities of the child nodes
        $siNode = $xmlReader->expand();
        $textNodes = $siNode->getElementsByTagName(self::XML_NODE_T);

        foreach ($textNodes as $textNode) {
            if ($this->shouldExtractTextNodeValue($textNode)) {
                $textNodeValue = $textNode->nodeValue;
                $shouldPreserveWhitespace = $this->shouldPreserveWhitespace($textNode);

                $sharedStringValue .= ($shouldPreserveWhitespace) ? $textNodeValue : trim($textNodeValue);
            }
        }

        $this->cachingStrategy->addStringForIndex($sharedStringValue, $sharedStringIndex);
    }
protected function processSharedStringsItem($xmlReader, $sharedStringIndex)
    {
        $sharedStringValue = '';

        // NOTE: expand() will automatically decode all XML entities of the child nodes
        $siNode = $xmlReader->expand();
        $textNodes = $siNode->getElementsByTagName(self::XML_NODE_T);

        foreach ($textNodes as $textNode) {
            if ($this->shouldExtractTextNodeValue($textNode)) {
                $textNodeValue = $textNode->nodeValue;
                $shouldPreserveWhitespace = $this->shouldPreserveWhitespace($textNode);

                $sharedStringValue .= ($shouldPreserveWhitespace) ? $textNodeValue : trim($textNodeValue);
            }
        }

        $this->cachingStrategy->addStringForIndex($sharedStringValue, $sharedStringIndex);
    }
protected function processSharedStringsItem ( $ xmlReader , $ sharedStringIndex ) { $ sharedStringValue = '' ; // NOTE: expand() will automatically decode all XML entities of the child nodes $ siNode = $ xmlReader -> expand ( ) ; $ textNodes = $ siNode -> getElementsByTagName ( self :: XML_NODE_T ) ; foreach ( $ textNodes as $ textNode ) { if ( $ this -> shouldExtractTextNodeValue ( $ textNode ) ) { $ textNodeValue = $ textNode -> nodeValue ; $ shouldPreserveWhitespace = $ this -> shouldPreserveWhitespace ( $ textNode ) ; $ sharedStringValue .= ( $ shouldPreserveWhitespace ) ? $ textNodeValue : trim ( $ textNodeValue ) ; } } $ this -> cachingStrategy -> addStringForIndex ( $ sharedStringValue , $ sharedStringIndex ) ; }
Processes the shared strings item XML node which the given XML reader is positioned on.

@param \Box\Spout\Reader\Wrapper\XMLReader $xmlReader XML Reader positioned on a "<si>" node
@param int $sharedStringIndex Index of the processed shared strings item
@return void
Processes the shared strings item XML node which the given XML reader is positioned on .