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
10 months agoWilford
10 months agoLaquita
10 months agoDelisa
11 months agoLinn
11 months agoZachary
11 months agoMaynard
11 months agoCarylon
11 months agoDacia
11 months agoLashaunda
11 months agoMargart
11 months agoAshton
11 months ago