Skip to content

Commit b319324

Browse files
committed
Fixed a merge error
1 parent 8c51c18 commit b319324

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

components/serializer.rst

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -981,47 +981,6 @@ When a ``PropertyTypeExtractor`` is available, the normalizer will also check th
981981
matches the type of the property (even for primitive types). For instance, if a ``string`` is provided, but
982982
the type of the property is ``int``, an :class:`Symfony\\Component\\Serializer\\Exception\\UnexpectedValueException`
983983
will be thrown.
984-
=======
985-
986-
=======
987-
988-
>>>>>>> Minor rewords
989-
Context
990-
~~~~~~~
991-
992-
The ``encode()`` method defines a third optional parameter called ``context``
993-
which defines the configuration options for the XmlEncoder an associative array::
994-
995-
$xmlEncoder->encode($array, 'xml', $context);
996-
997-
These are the options available:
998-
<<<<<<< HEAD
999-
1000-
=======
1001-
1002-
>>>>>>> Minor rewords
1003-
``xml_format_output``
1004-
If set to true, formats the generated XML with line breaks and indentation.
1005-
1006-
``xml_version``
1007-
Sets the XML version attribute (default: ``1.1``).
1008-
1009-
``xml_encoding``
1010-
Sets the XML encoding attribute (default: ``utf-8``).
1011-
1012-
``xml_standalone``
1013-
Adds standalone attribute in the generated XML (default: ``true``).
1014-
1015-
``xml_root_node_name``
1016-
  Sets the root node name (default: ``response``).
1017-
1018-
``remove_empty_tags``
1019-
<<<<<<< HEAD
1020-
If set to true, remove all empty tags in the XML output.
1021-
>>>>>>> Minor syntax issues and some rewordings
1022-
=======
1023-
If set to true, removes all empty tags in the generated XML.
1024-
>>>>>>> Minor rewords
1025984

1026985
Learn more
1027986
----------

0 commit comments

Comments
 (0)