class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, DecoderInterface, NormalizationAwareInterface
Encodes XML data.
Methods
setSerializer(SerializerInterface $serializer) Sets the owning Serializer object. from SerializerAwareEncoder __construct(string $rootNodeName = 'response', int|null $loadOptions = null) Construct new XmlEncoder and allow to change the root node element name.
scalar encode(mixed $data, string $format, array $context = array()) Encod