@@ -856,9 +856,9 @@ you indicate that you're expecting an array instead of a single object.
856856
857857 $data = ...; // The serialized data from the previous example
858858 $persons = $serializer->deserialize($data, 'Acme\Person[]', 'json');
859-
859+
860860 The ``XmlEncoder ``
861- -----------------------
861+ ------------------
862862
863863This encoder transforms arrays into XML and vice versa.
864864
@@ -884,34 +884,35 @@ Be aware that this encoder will consider keys beginning with ``@`` as attributes
884884 // <response>
885885 // <foo bar="value" />
886886 // </response>
887-
888- Context
889- ~~~~~~~~~~~~~~~
887+
888+ Contex
889+ ~~~~~~
890890
891891The context param is an array of additional options for the XmlEncoder.
892- It must be defined in the call of XmlEncoder encode() method :
893892
894- $xmlEncoder->encode($array, 'xml', $context);
893+ It must be defined while calling the XmlEncoder encode() method::
894+
895+ $xmlEncoder->encode($array, 'xml', $context);
895896
896897**Available params : **
897-
898+
898899``xml_format_output ``
899- If setted to true, format the output XML with line break and indentation
900+ If set to true, format the output XML with line break and indentation
900901
901902``xml_version ``
902- Change the XML version attribute
903+ Change the XML version attribute
903904
904905``xml_encoding ``
905- Change the XML encoding attribute
906+ Change the XML encoding attribute
906907
907908``xml_standalone ``
908- Add standalone attribute in XML output
909-
910- ``remove_empty_tags ``
911- If setted to true, remove all empty tags in the XML output
909+ Add standalone attribute in XML output
912910
913911``xml_root_node_name ``
914- Change the root node name (default : response)
912+ Change the root node name (default : response)
913+
914+ ``remove_empty_tags ``
915+ If set to true, remove all empty tags in the XML output
915916
916917Recursive Denormalization and Type Safety
917918-----------------------------------------
0 commit comments