Question: Create an XSD that validates all three XML files: 1. 4 2 8 6 4 2

Create an XSD that validates all three XML files:

1.

  4

  2

 

  8

  6

 

  4

  2

 

2. Intentionally create an error by giving the schema an XML file with valid structure but invalid data. (For example, a with no child element.)

3. Take a screenshot showing the schema catching the error in 2.

Remember, you don’t know if your schema is working unless it gives you an error!

4. Verify that the schema gives you an error for an invalid file, but accepts all three valid files.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!