Skip to content

Self-Closing does not work for Empty Elements with Attributes #15

@arminfrey1

Description

@arminfrey1

I need to create elements that have attributes, but no value that are self-closing. The current code creates:

<cargo weight="19200" unit="kg">
</cargo>

but what I need is:

<cargo weight="19200" unit="kg"/>

I'm using Array2xml to create a soap message and the current result is not legal code. This would fix that issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions