Good news 🙂

I’ve a couple of GMail accounts to give away.  Let’s make this a little contest 🙂  Since I’m curious how deep the average XML Schema knowledge goes, I’ll grant GMail access to the first two people that post a comment explaining what is wrong with the XML Schema below. 

Note: XMLSpy will mark this schema as valid while it certainly is not!  (Has anyone accidently noticed my aversion against this tool? :-))) )

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

<xs:schema xmlns:xs=”http://www.w3.org/2001/XMLSchema” elementFormDefault=”qualified” attributeFormDefault=”unqualified” targetNamespace=”myTargetNamespace” xmlns:tns=”myTargetNamespace”>
   <xs:element name=”address” type=”tns:addressType”/>

   <xs:element name=”customerDetails”>
      
<xs:complexType>
      
   <xs:sequence>
            
<xs:element name=”firstName” type=”xs:string”/>
            
<xs:element ref=”tns:address” nillable=”true”/>
         
</xs:sequence>
      
</xs:complexType>
   
</xs:element>

   <xs:complexType name=”addressType”>
      
<xs:sequence>
         
<xs:element name=”street” type=”xs:string”/>
         
<xs:element name=”number” type=”xs:string”/>
      
</xs:sequence>
   
</xs:complexType>
</
xs:schema>

Share this post: Email it! | bookmark it! | digg it! | reddit!