XML generation added, some additions to the XML schema.