XML generation-- incomplete