[xml mode] Fix bug with value-less attributes

Closes #2112