final protected function XmlEncoder::appendCData in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Encoder/XmlEncoder.php \Symfony\Component\Serializer\Encoder\XmlEncoder::appendCData()
Parameters
\DOMNode $node:
string $val:
Return value
bool
1 call to XmlEncoder::appendCData()
- XmlEncoder::selectNodeType in vendor/
symfony/ serializer/ Encoder/ XmlEncoder.php - Tests the value being passed and decide what sort of element to create.
File
- vendor/
symfony/ serializer/ Encoder/ XmlEncoder.php, line 211
Class
- XmlEncoder
- Encodes XML data.
Namespace
Symfony\Component\Serializer\EncoderCode
protected final function appendCData(\DOMNode $node, $val) {
$nodeText = $this->dom
->createCDATASection($val);
$node
->appendChild($nodeText);
return true;
}