You are here

protected function XmlParser::getInnerXml in Feeds extensible parsers 8

Returns the inner XML of a DOM node.

Parameters

\DOMNode $node: The node to convert to raw XML.

Return value

string The inner XML.

1 call to XmlParser::getInnerXml()
XmlParser::executeSourceExpression in src/Feeds/Parser/XmlParser.php
Executes a single source expression.

File

src/Feeds/Parser/XmlParser.php, line 335

Class

XmlParser
Defines a XML parser using XPath.

Namespace

Drupal\feeds_ex\Feeds\Parser

Code

protected function getInnerXml(DOMNode $node) {
  $buffer = '';
  foreach ($node->childNodes as $child) {
    $buffer .= $this
      ->getRaw($child);
  }
  return $buffer;
}