Replies: 1 comment
-
|
@NebsterSK, unfortunately that won't work. And one could argue that is more of a feature than a bug. BUT you can surround it with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, is it possible to turn off creation of single closing tag when input array is empty?
This code:
ArrayToXml::convert(['ticket' => []], 'tickets', xmlEncoding: 'UTF-8');creates this output:
<?xml version="1.0" encoding="UTF-8"?> <tickets> <ticket/> </tickets>however I need this output:
<?xml version="1.0" encoding="UTF-8"?> <tickets> </tickets>Is that possible?
I went trough the docs but couldnt find any option / property.
Beta Was this translation helpful? Give feedback.
All reactions