final protected function XmlEncoder::appendXMLString

Parameters

DOMNode $node:

string $val:

Return value

Boolean

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/XmlEncoder.php, line 141

Class

XmlEncoder
Encodes XML data

Namespace

Symfony\Component\Serializer\Encoder

Code

protected final function appendXMLString($node, $val) {
  if (strlen($val) > 0) {
    $frag = $this->dom
      ->createDocumentFragment();
    $frag
      ->appendXML($val);
    $node
      ->appendChild($frag);
    return true;
  }
  return false;
}