Today, all modern games use HMTL and CSS to create their UI, so why not implement this evolution?
XML is outdated and limiting, it doesn’t allow you to do complex things, or other basic things with HTML.