Update XMLWriter.php

Adding ability to write namespaced elements.