Conversion of xml scripts to scala.