Token filter for the XML api.