apply pull request #29: Add support for XML declarations