Create a schema file that captures the requirements for a element>

Create a schema file that captures the requirements for a <student> element>

Here are the specifications for student:

Don't use plagiarized sources. Get Your Custom Essay on
Create a schema file that captures the requirements for a element>
Just from $8 /Page 0r 300 words
Order Now

3.1. A student must have a first name and last name.

Save your time - order a paper!

Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines

Order Paper Now

3.2. A student may have a middle name, but it’s optional.

3.3. A student may have a home address, a work address, or both.

3.3.1. Use a complex type to connect to a single schema definition for “address”

3.4. An address has: a street address, city, state, and zip code. Include the following limits:

3.4.1. Street address may have one or two entries

3.4.2. State must be two letters

3.4.3. Zipcode must be 5 or 9 digits
Online searches can help with regular expressions for this one!

Sample files:

<?xml version=”1.0″ encoding=”utf-8″?>

<!— Valid data –>

<student>

<first_name>Mani</first_name>

<middle_name>Rupee</middle_name>

<last_name>Patel</last_name>

<home_address>

<street>2525 Longhorn Way</street>

<street>Apartment 35</street>

<city>Redmond</city>

<state>WA</state>

<zip>88899-3535</zip>

</home_address>

</student>

<?xml version=”1.0″ encoding=”utf-8″?>

<!— Valid data –>

<student>

<first_name>Michael</first_name>

<last_name>Hortensia</last_name>

<home_address>

<street>Generic Technical Company</street>

<street>1515 Longhorn Way</street>

<city>Seattle</city>

<state>WA</state>

<zip>98585</zip>

</home_address>

<work_address>

<street>346 3rd Street</street>

<city>Olympia</city>

<state>WA</state>

<zip>98581</zip>

</work_address>

</student>

<?xml version=”1.0″ encoding=”utf-8″?>

<student>

<!— Invalid data –>

<first_name>Mani</first_name>

<work_address>

<street>3535 Too many streets</street>

<street>Rockford Way</street>

<street>MacIntyre Lane</street>

<city>Redmond</city>

<state>WART</state>

<zip>88899-35358</zip>

</work_address>

</student>

In: Computer Science

Looking for a similar assignment? Get help from our qualified experts!

Order Now