Xmlscript

Merge in Johnny's contribution.