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.
10931093 changed by adding the ``\XML_COMMENT_NODE `` option to the ``XmlEncoder::ENCODER_IGNORED_NODE_TYPES ``
10941094 key of the ``$defaultContext `` of the ``XmlEncoder `` constructor or
10951095 directly to the ``$context `` argument of the ``encode() `` method::
1096-
1096+
10971097 $xmlEncoder->encode($array, 'xml', [XmlEncoder::ENCODER_IGNORED_NODE_TYPES => [\XML_COMMENT_NODE]]);
10981098
10991099The ``XmlEncoder `` Context Options
@@ -1124,6 +1124,7 @@ Option Description
11241124``encoder_ignored_node_types `` Array of node types (`DOM XML_* constants `_) ``[] ``
11251125 to be ignored while encoding
11261126``load_options `` XML loading `options with libxml `_ ``\LIBXML_NONET | \LIBXML_NOBLANKS ``
1127+ ``save_options `` XML saving `options with libxml `_ ``0 ``
11271128``remove_empty_tags `` If set to true, removes all empty tags in the ``false ``
11281129 generated XML
11291130============================== ================================================= ==========================
You can’t perform that action at this time.
0 commit comments