XML I10-002 Exam - Topic 3 Question 36 Discussion
Push the Exhibit Button to load the referenced "testml.xsd".Assume that "testml.xsd" is defined. Without rewriting this XML Schema Document ("testml.xsd"), create a new, separate XML Schema Document to partially change the schema definition to write a cell Phone element as a child element of the person element. As a result, the following "XML Document" will be valid against the new schema. Which of the following correctly describes the new XML Schema Document? Assume the XML parser correctly processes the XML schema Location attribute.[XML.Documet]John Smith03-000-99900-1111-2222
C) <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:redefine schemaLocation= ' testml.xsd ' >
<xs:complexType name= ' personType ' >
<xs:complexContent>
<xs:extension base= ' personType ' >
<xs:sequence>
<xs:element ref= ' cellPhone ' />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:redefine>
<xs:element name= ' cellPhone ' type= ' xs:string ' />
</xs:schema>
A) <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:import schemaLocation='testml.xsd' />
<xs:complexType name='personType'>
<xs:sequence>
<xs:element ref= ' name ' />
<xs:element ref= ' phone ' />
<xs:element ref= ' cellPhone ' />
</xs:sequence>
</xs:complexType>
<xs:element name= ' cellPhone ' type= ' xs:string ' />
</xs:schema>
B) <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:include schemaLocation='testml.xsd' />
<xs:complexType name='newPersonType' substitutionGroup='personType'>
<xs:sequence>
<xs:element ref= ' name ' />
<xs:element ref= ' phone ' />
<xs:element ref= ' cellPhone ' />
</xs:sequence>
</xs:complexType>
<xs:element name= ' cellPhone ' type= ' xs:string ' />
</xs:schema>
D) It is not possible to implement a function of the type proposed.
Patrick
7 months agoWilford
7 months agoLaquita
7 months agoDelisa
8 months agoLinn
8 months agoZachary
8 months agoMaynard
8 months agoCarylon
8 months agoDacia
8 months agoLashaunda
8 months agoMargart
8 months agoAshton
8 months ago