Test wellformedness

This script performs a test to see if the XML is wellformed. If so, the next phase of the workflow can be started.