Lab 5. Check Election Results

In this folder is election-results.xml
Open it and examine its contents. It contains
the results of an election. It shows the
percentage that each candidate received.

In this folder is election-results.xsd
Open it and examine its contents. It expresses
the structure of the instance document.

For the instance document to be valid it
must have the correct structure and it
must conform to this rule:

  The sum of all the percentages 
  must be 100.

Add an assertion to the schema to implement
this rule.