Question: A. Create schema for the below XML Patient Lab records. See below the XML file. Create a schema to detect errors in the XML file.
A. Create schema for the below XML Patient Lab records. See below the XML file.
- Create a schema to detect errors in the XML file.
- Run the schema to detect the errors (submit a screenshot of the validation)
- Fix the errors and re-run the validation against a schema (submit screenshot)
The constraints that must be described are
- Patient info must include "mrn" attribute.
- The name includes 3 parts
- First name (must be present)
- Middle name (optional - some folks do not have middle names)
- Last name (must be present)
- The length of name components (first or middle or last) cannot be more than 50 chars
- The medical test should be one of three choices: Blood, Stool, and Sputum.
- DOB
- The day should be in the range of 1-31
- The month should be in the range of 1-12
- Year should be in the range from 1900 to 2016
- Test cost is a positive number and less than 10,000
XLM code:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
