Merge pull request #1 from zckrs/master

Override DOMDocument->createElement() to avoid "unterminated entity reference" error.
Fix case when value is equal to "0"