Validating the xml against the xsd. Copied code from PerlMonks.
Deleted extra test xml file.