Skip to content

Commit 2ac6a89

Browse files
committed
Merge branch '5.0' into 5.1
* 5.0: Update serializer.rst Update serializer.rst
2 parents c3304e1 + 0d44af3 commit 2ac6a89

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

components/serializer.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -830,8 +830,7 @@ always as a collection.
830830
.. tip::
831831

832832
XML comments are ignored by default when decoding contents, but this
833-
behavior can be changed with the optional ``$decoderIgnoredNodeTypes`` argument of
834-
the ``XmlEncoder`` class constructor.
833+
behavior can be changed with the optional context key ``XmlEncoder::DECODER_IGNORED_NODE_TYPES``.
835834

836835
Data with ``#comment`` keys are encoded to XML comments by default. This can be
837836
changed with the optional ``$encoderIgnoredNodeTypes`` argument of the
@@ -1184,9 +1183,7 @@ Use the special ``#`` key to define the data of a node::
11841183
// is encoded as follows:
11851184
// <?xml version="1.0"?>
11861185
// <response>
1187-
// <foo bar="value">
1188-
// baz
1189-
// </foo>
1186+
// <foo bar="value">baz</foo>
11901187
// </response>
11911188

11921189
Context

0 commit comments

Comments
 (0)