10000 [Serializer] Adjust XmlEncoder context docs · symfony/symfony-docs@ed90c27 · GitHub
[go: up one dir, main page]

Skip to content

Commit ed90c27

Browse files
committed
[Serializer] Adjust XmlEncoder context docs
1 parent e556d26 commit ed90c27

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

components/serializer.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -967,18 +967,20 @@ These are the options available:
967967
============================== ================================================= ==========================
968968
Option Description Default
969969
============================== ================================================= ==========================
970-
``xml_format_output`` If set to true, formats the generated XML with
971-
line breaks and indentation.
970+
``xml_format_output`` If set to true, formats the generated XML with ``false``
971+
line breaks and indentation
972972
``xml_version`` Sets the XML version attribute ``1.1``
973973
``xml_encoding`` Sets the XML encoding attribute ``utf-8``
974974
``xml_standalone`` Adds standalone attribute in the generated XML ``true``
975975
``xml_type_cast_attributes`` This provides the ability to forgot the attribute ``true``
976976
type casting
977-
``xml_root_node_name`` Sets the root node name (default: ``response``).
978-
``as_collection`` Always returns results as a collection, even if
977+
``xml_root_node_name`` Sets the root node name ``response``
978+
``as_collection`` Always returns results as a collection, even if ``false``
979979
only one line is decoded
980-
``decoder_ignored_node_types`` Sets nodes to be ignored in the decode ``[\XML_PI_NODE, \XML_COMMENT_NODE]``
981-
``encoder_ignored_node_types`` Sets nodes to be ignored in the encode ``[]``
980+
``decoder_ignored_node_types`` Array of node types (`DOM XML_* constants`_) ``[\XML_PI_NODE, \XML_COMMENT_NODE]``
981+
to be ignored while decoding
982+
``encoder_ignored_node_types`` Array of node types (`DOM XML_* constants`_) ``[]``
983+
to be ignored while encoding
982984
``load_options`` XML loading `options with libxml`_ ``\LIBXML_NONET | \LIBXML_NOBLANKS``
983985
``remove_empty_tags`` If set to true, removes all empty tags in the ``false``
984986
generated XML
@@ -1555,6 +1557,7 @@ Learn more
15551557
.. _`JMS serializer`: https://github.com/schmittjoh/serializer
15561558
.. _RFC3339: https://tools.ietf.org/html/rfc3339#section-5.8
15571559
.. _`options with libxml`: https://www.php.net/manual/en/libxml.constants.php
1560+
.. _`DOM XML_* constants`: https://www.php.net/manual/en/dom.constants.php
15581561
.. _JSON: http://www.json.org/
15591562
.. _XML: https://www.w3.org/XML/
15601563
.. _YAML: https://yaml.org/

0 commit comments

Comments
 (0)
0