Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -830,8 +830,7 @@ always as a collection.
.. tip::

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

Data with ``#comment`` keys are encoded to XML comments by default. This can be
changed with the optional ``$encoderIgnoredNodeTypes`` argument of the
Expand Down