You are here

protected function XPathXMLParser::getRaw in Feeds XPath Parser 8

Returns the raw node value.

@todo Refactor.

Parameters

\DOMNode $node: The DOMNode to convert to a string.

Return value

string The string representation of the DOMNode.

Overrides ParserBase::getRaw

File

lib/Drupal/feeds_xpathparser/Plugin/feeds/Parser/XPathXMLParser.php, line 59
Contains \Drupal\feeds_xpathparser\Plugin\feeds\Parser\XPathXMLParser.

Class

XPathXMLParser
Defines an XML feed parser.

Namespace

Drupal\feeds_xpathparser\Plugin\feeds\Parser

Code

protected function getRaw(\DOMNode $node) {
  return $this->doc
    ->saveXML($node);
}