Added script support to xml