Is there any way to prevent SimpleXML from collapsing empty tags?
For example, if you input
<foo></foo>
Then write the output, it has become:
<foo />
What I really want, is for tags that have been defined as closed to be closed but not ones that haven't.
E.g.
an input of
<foo />
<bar></bar>
Is output as that, not as :
<foo />
<bar />
or
<foo></foo>
<bar></bar>
Is that possible?