What I can see is that it prints every tag that has no text as <foo/>, but I need it to be <foo></foo> I'm pushing the XML into an HTML document (the source can't be parsed with a dom lib), and that will add the closing tag even if the tag itself is closed.
What I can see is that it prints every tag that has no text as
<foo/>
, but I need it to be<foo></foo>
I'm pushing the XML into an HTML document (the source can't be parsed with a dom lib), and that will add the closing tag even if the tag itself is closed.