final protected function XmlEncoder::appendXMLString in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Encoder/XmlEncoder.php \Symfony\Component\Serializer\Encoder\XmlEncoder::appendXMLString()
Parameters
\DOMNode $node:
string $val:
Return value
bool
File
- vendor/
symfony/ serializer/ Encoder/ XmlEncoder.php, line 178
Class
- XmlEncoder
- Encodes XML data.
Namespace
Symfony\Component\Serializer\EncoderCode
protected final function appendXMLString(\DOMNode $node, $val) {
if (strlen($val) > 0) {
$frag = $this->dom
->createDocumentFragment();
$frag
->appendXML($val);
$node
->appendChild($frag);
return true;
}
return false;
}