Update XmlFormat.php

Allows node element like &lt;nodename&gt;0&lt;/nodename&gt;, currently resolved as &lt;nodename /&gt;.