Generation XML (in progress)