You are on page 1of 1

CSD 4464_2

Assignment 1

Give the XML Schema corresponding to the following XML document. We assume that StudID
should always be in the format s999999999 and Status takes one of the values “Freshman”,
“Sophomore”, “Junior”, and “Senior”. We assume there is, at least one student. The name and
address are of type string.
<?xml version="1.0" ?>
<Students>
<Student>
<StudId>s111111111</StudId>
<Name>John Doe</Name>
<Address>123 Main St.</Address>
<Status>Freshman</Status>
</Student>
<Student>
<StudId>s222222222</StudId>
<Name>Mary Smith</Name>
<Address>145 Main St.</Address>
<Status>Junior </Status>
</Student>
</Students>

You might also like