I10-002 Free Dumps Study Materials
Question 8: Push the Exhibit Button to load the referenced "XML Document".
[XML Document]
<TestML xmlns="urn:xmlmaster:testml">
<record level="1" data="100" />
<record level="2" data="250" />
</TestML>
Choose the XML Schema Document that does not correctly define the structure of the "XML Document".
A. <xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:xmlmaster:testml"
xmlns:tns="urn:xmlmaster:testml" >
<xs:element name="TestML" type=" tns:testmlType " />
<xs:complexType name="testmlType">
<xs:sequence>
<xs:element ref=" tns:record " maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:element name="record" type=" tns:recordType " />
<xs:complexType name="recordType">
<xs:attribute name="level" type="xs:int" />
<xs:attribute name="data" type="xs:int" />
</xs:complexType>
</xs:schema>
B. <xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:xmlmaster:testml"
xmlns="urn:xmlmaster:testml" >
<xs:element name="TestML" type=" testmlType " />
<xs:complexType name="testmlType">
<xs:sequence>
<xs:element ref=" record " maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:element name="record" type=" recordType " />
<xs:complexType name="recordType">
<xs:attribute name="level" type="xs:int" />
<xs:attribute name="data" type="xs:int" />
</xs:complexType>
</xs:schema>
C. <xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:xmlmaster:testml" >
<xs:element name="TestML" type=" testmlType " />
<xs:complexType name="testmlType">
<xs:sequence>
<xs:element ref=" record " maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:element name="record" type=" recordType " />
<xs:complexType name="recordType">
<xs:attribute name="level" type="xs:int" />
<xs:attribute name="data" type="xs:int" />
</xs:complexType>
</xs:schema>
D. <schema
xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:xmlmaster:testml"
xmlns:tns="urn:xmlmaster:testml">
<element name="TestML" type="tns:testmlType" />
<complexType name="testmlType">
<sequence>
<element ref="tns:record" maxOccurs="unbounded" />
</sequence>
</complexType>
<element name="record" type="tns:recordType" />
<complexType name="recordType">
<attribute name="level" type="int" />
<attribute name="data" type="int" />
</complexType>
</schema>
Correct Answer: C