simple XML Schema - XSD

dragoner0770

New Member
I have the following xsd file which is throwing "invalid schema" error. I have done many complex schemas before but cannot seem to figure out what is wrong with this one, which should be very straight forward. I know I need something after \[code\]<xsd:element name="ebay">\[/code\]but what?\[code\]XML:<ebay><userID></userID></ebay>Schema: <?xml version="1.0"?><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:element name="ebay"><xsd:element name="userID"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="http://stackoverflow.com/questions/11325723/1"/> <xsd:maxLength value="http://stackoverflow.com/questions/11325723/255"/> <xsd:whiteSpace value="http://stackoverflow.com/questions/11325723/collapse"/> </xsd:restriction> </xsd:simpleType> </xsd:element></xsd:element></xsd:schema>\[/code\]
 
Back
Top