Writes Collection to XML file
Minor Fixes and added XSD file for validation