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.
830
830
.. tip ::
831
831
832
832
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 ``.
835
834
836
835
Data with ``#comment `` keys are encoded to XML comments by default. This can be
837
836
changed with the optional ``$encoderIgnoredNodeTypes `` argument of the
@@ -1184,9 +1183,7 @@ Use the special ``#`` key to define the data of a node::
1184
1183
// is encoded as follows:
1185
1184
// <?xml version="1.0"?>
1186
1185
// <response>
1187
- // <foo bar="value">
1188
- // baz
1189
- // </foo>
1186
+ // <foo bar="value">baz</foo>
1190
1187
// </response>
1191
1188
1192
1189
Context
You can’t perform that action at this time.
0 commit comments