Xml script reading