Fix the issue #22

https://github.com/sukima/xmledit/issues/22
Merge pull request #23 from szw/master

Fix for the issue #22