Can anyone explain to me why this xml doesn't validate with the following XSD?

This is the XSD:

<?xml version="1.0" encoding="UTF-8"?>

<schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">

         <element name="SubmitPurchaseOrder">

                 <complexType>

                          <sequence>

                                   <element name="argy" type="string"/>

                                   <element name="argx" type="string"/>

                          </sequence>

                  </complexType>

         </element>

</schema>


This is the XML instance:

<?xml version="1.0" encoding="UTF-8"?>

<SubmitPurchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Development\o\o\Untitled12.xsd">

         <argx>String</argx>

         <argy>String</argy>

</SubmitPurchaseOrder>



Thanks in advance,
Asaf

 

Reply via email to