CSC 513 Project 3: Validate XML

For this assignment, you will be defining the XML schemas for each of the messages to be sent between a customer, a serviceProvider (e.g., customer's bank) , and the BigBank. BigBank is the name of a financial institution, which provides funds transfer service to either its customers or the service providers.

The messages to be encoded are:

Notes

In this assignment, you are going to give each schema a different targetNamespace. With the below design, you can define common types such as Account and CurAmount in Inquiry.xsd and reference them later in Settlement.xsd.

Inquiry.xsd

<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            targetNamespace="urn:Inquiry"
            xmlns="urn:Inquiry"
            elementFormDefault="qualified">
    <...
</xsd:schema>

Settlement.xsd

<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            targetNamespace="urn:Settlement"
            xmlns="urn:Settlement"
            elementFormDefault="qualified"
            xmlns:in="urn:Inquiry">

    <xsd:import namespace="urn:Inquiry"
                schemaLocation="Inquiry.xsd"/>

    <...
</xsd:schema>

Settlement.xml (conforming to the multiple targetNamespaces)

<?xml version="1.0"?>
<Settlement xmlns="urn:Settlement"
         xmlns:in="urn:Inquiry"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="urn:Settlement Settlement.xsd">
        <...
</Settlement>

Deliverables