Fix the issue #22

https://github.com/sukima/xmledit/issues/22