Hi All,
I am new to XML.I have started reading a book(Monson & Haefel-J2EE Web
Services) since few days and am stuck very badly at apoint.Hoping that
you all will help me out!!!
Here is the address.xsd file:
<schema xmlns:"
http://www.w3.org/2001/XMLSchema"
xmlns:mh="
http://www.Monson-Haefel.com/jwsbook"
targetNameSpace="
http://www.Monson-Haefel.com/jwsbook" >
<element name="purcahseOrder" type="mh:USAddress" />
<complexType name="USAddress"?
<sequence>
<element name="name" type="string" />
<element name="street" type="string" />
<element name="city" type="string" />
</sequence>
</complexType>
</schema>
And the address.xml file is:
<purchaseOrder xmlns="
http://www.Monson-Haefel.com/jwsbook"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.Monson-Haefel.com/jwsbook
address.xsd">
<name>El Nino</name>
<city>Pune</city>
<street>J.M</street>
I have kept both the files in the same folder.According to the schema
above xml file should generate an error but it doesnt.Can anyone help
me out why is this happening??
Waiting for your generous responses,
El Nino