[xml mode] Fix bug introduced by a6aa48eee2c8262a8763f1e39afdf8a79a130a41