Added comments to the XML validator file. TODO: insert data for fields which have just a datatype as their data.

Also started working on getting the XML parser to validate the datatype of xml fields.