Generate global script XML with enclosing ROOT tag