I'm getting XML like this:
<Items>
<Row attr1="val"></Row>
<Row attr1="val2"></Row>
</Items>
This is valid XML, as you know, but another library I'm using is busted and it will only accept XML in this format:
<Items>
<Row attr1="val"/>
<Row attr1="val2"/>
</Items>
I'm already reading the XML into XmlDocuments, manipulating them, and rewriting them using an XmlWriter(), what's the easiest (and most efficient) way for me to "collapse" these empty tags?