Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <xsd:schema
- attributeFormDefault="unqualified"
- elementFormDefault="qualified"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <xsd:element name="Dog">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="Age" type="xsd:int"/>
- <xsd:element name="Name" type="xsd:string"/>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <Dog>
- <Name>Rex</Name>
- <Age>three</Age>
- </Dog>
- 1. The element 'Dog' has invalid child element 'Name'.
- 2. The 'Age' element is invalid - The value 'three' is invalid according to its datatype
Add Comment
Please, Sign In to add comment