Completed XML generation