File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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
11921189Context
You can’t perform that action at this time.
0 commit comments