File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1093,7 +1093,7 @@ always as a collection.
1093
1093
changed by adding the ``\XML_COMMENT_NODE `` option to the ``XmlEncoder::ENCODER_IGNORED_NODE_TYPES ``
1094
1094
key of the ``$defaultContext `` of the ``XmlEncoder `` constructor or
1095
1095
directly to the ``$context `` argument of the ``encode() `` method::
1096
-
1096
+
1097
1097
$xmlEncoder->encode($array, 'xml', [XmlEncoder::ENCODER_IGNORED_NODE_TYPES => [\XML_COMMENT_NODE]]);
1098
1098
1099
1099
The ``XmlEncoder `` Context Options
@@ -1124,6 +1124,7 @@ Option Description
1124
1124
``encoder_ignored_node_types `` Array of node types (`DOM XML_* constants `_) ``[] ``
1125
1125
to be ignored while encoding
1126
1126
``load_options `` XML loading `options with libxml `_ ``\LIBXML_NONET | \LIBXML_NOBLANKS ``
1127
+ ``save_options `` XML saving `options with libxml `_ ``0 ``
1127
1128
``remove_empty_tags `` If set to true, removes all empty tags in the ``false ``
1128
1129
generated XML
1129
1130
============================== ================================================= ==========================
You can’t perform that action at this time.
0 commit comments