Update mxmldoc to produce XML conforming to the schema. Update the schema so that it works. Add version number to XML output.