Life Expectancy
(1) Your tasks for LifeExpectancy.xml:
In order to complete this assignment, you will need to utilize the attached XML file “LifeExpectancy.xml.”
Part 1: Draw the tree structure of the XML file.
Part 2: Write Xpath expressions to get the following:
- the life expectancy of Afghan males in 1990
- the life expectancy of Albanian females in 2009
- the names of countries for whose 1990 male life expectancy is less than 50
- the male life expectancy (1990) of the countries where female life expectancy in (1990) is higher than 80
Instructions
In order to complete this assignment, you must insert the image rendered with screenshot for part 1 inside of a word document. Next, you will provide each of the Xpath expressions you used to get the answers to each of the prompts in part 2.
(2) Your tasks for LifeExpectancy.xml:
Create regular expressions to match the following patterns
- Long dates. Example “Thursday, December 01, 2016”
- Short dates. Example “1-Dec-16”
- Date and time: mm/dd/yyyy hh:mm:ss am|pm. Example “12/01/2016 11:30:00 AM”
For each pattern
- Create 5 positive examples and 5 negative examples
- User your regex to check. (Your regex should match all positive example but does not match any negative example).
Submit your work in a text file
If you have issues to install RegEx Helper in notepad++, please use the online tool https://regex101.com/ to finish your homework.
Instructions
In order to complete this assignment, you must submit in a text file and screenshot in a word file.
(3) Your tasks for XML Patient Lab records:
- Create schema to detect errors in the XML file.
- Run the schema to detect the errors (submit screenshot of the validation)
- Fix the errors and re-run the validation against schema (submit screenshot)
- Create schema for the XML Patient Lab records
The constraints must be described are
- Patient info must include “mrn” attribute.
- 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
- Medical test should be one of three choices: Blood, Stool and Sputum.
- DOB
- Day should be in range 1-31
- Month should be in range 1-12
- Year should be in range from 1900 to 2016
- Test cost is positive number and less than 10,000
Instructions
In order to complete this assignment, you must submit your assignment in .xsd format.
Please reference for 3 example files:
https://www.sendspace.com/filegroup/7rVRRwsU7ck1eTn33sEXjy7sNciFlgZ%2FOKY7H02uVZc%2Fe3JsEvbTqA