[xml mode] Fix value-less attributes

Issue #902