Good afternoon!
I'm developing a webservice in which I will not disclose the name in which there is a method that accepts XML in the following way:
<exemplo>
<exemplo></exemplo>
<exemplo></exemplo>
</exemplo>
I am creating the XML's by DOMDocument but I can not generate the XML's as above, it always comes out in that format the children that do not have values: <exemplo/>
and this generates errors in webservice not returning what I need.
Is there any way for this output to be generated by DOM?
Follow how I raise children.
$exemplo = $dom->createElement("exemplo","");
$root->appendChild($exemplo);