Skip to content

comment tag is missing #28

@aliaswpeu

Description

@aliaswpeu

Hello, when using like this, comment tag is not rendered:

$order_body = XmlWriter::make()
            ->setXmlStandalone(true)
            ->write('orders', [
                'order' => [
                    'cod' => '123',
                    'comment' => 'test comment',
                ],

            ]);
"""
<?xml version="1.0" encoding="utf-8"?>\n
<orders>\n
  <order>\n
    <cod>123</cod>\n
    test comment\n
  </order>\n
</orders>\n
"""

Should be:

"""
<?xml version="1.0" encoding="utf-8"?>\n
<orders>\n
  <order>\n
    <cod>123</cod>\n
    <comment>test comment</comment>\n
  </order>\n
</orders>\n
"""

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions