$serializer = new XML_Serializer($options); $serializer->serialize($some_array);
$output = $serializer->getSerializedData();
I want to surround an arbitrary element generating XML with an above cord in CDATA, but I can't do it. Will not there be any good method?
XML_SERIALIZER_OPTION_CDATA_SECTIONS = true When I used it with this option, CDATA sticks to all data.