Say I have a very simple XML with an empty tag \'B\':
foo bar
They are NOT always equivalent. Many browsers can't deal with and want a separate closing tag. I ran into this problem while using xml/xsl with PHP. Output "html" didn't work, I'm still looking for a solution.