Fixed bugs in XML generation. Added schema for form to CCD definition.