Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. XmlEncoder.php

function XmlEncoder::appendXMLString

File

vendor/symfony/serializer/Encoder/XmlEncoder.php, line 169

Class

XmlEncoder
@author Jordi Boggiano <j.boggiano@seld.be> @author John Wards <jwards@whiteoctober.co.uk> @author Fabian Vogler <fabian@equivalence.ch> @author Kévin Dunglas <dunglas@gmail.com> @author Dany Maillard…

Namespace

Symfony\Component\Serializer\Encoder

Code

protected final function appendXMLString(\DOMNode $node, string $val) : bool {
    if ('' !== $val) {
        $frag = $node->ownerDocument
            ->createDocumentFragment();
        $frag->appendXML($val);
        $node->appendChild($frag);
        return true;
    }
    return false;
}
RSS feed
Powered by Drupal