1. The homework is to create a XML
schema and a XML document that is an instance of the schema as
following. The schema needs to be validated. It is recommended
you use NetBeans to create XML schema and document.
- Define PurchaseOrderType as
a complex type as following
- Sequence of the following elements
- shipTo element which
is Address type
- billTo element which
is Address type
- items element which
is items type
- orderDate attribute
whose type is xsd:date type
- Define Address as a
complex type as following
- Sequence of the following elements
- streetname whose
type is xsd:string
- streetnumber whose
type is xsd:int
- city whose type is xsd:string
- zip whose type is a listOfMyIntType
- country attribute
whose type is enumeration of US,
Korea, Egypt.
- Define items as a
complex type as following
- Stquence of the following elements
- name whose type is xsd:string
- quantity whose type
is xsd:long
- price whose type is xsd:int
- availability attribute
whose type is enumeration of Yes, No.
- Define listOfMyIntType as
following
- Declare the following two global elements
- purchaseOrder whose
type is PurchaseOrderType
- comment whose type is xsd:string