Adds content negotiation to XMLUI.