Fix for the issue #22

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