Reapply the fix to avoid duplicate xmlns bug
Merge pull request #22 from sesuncedu/new-xmlwriter-fix

Reapply the fix to avoid duplicate xmlns bug