Update XmlFormat.php

Allows node element like &lt;nodename&gt;0&lt;/nodename&gt;, currently resolved as &lt;nodename /&gt;.
Merge pull request #208 from ogodon/patch-2

Fixes XmlFormat to create text node when the value is 0