XML Master Professional Application Developer I10-002 Dumps in PDF

Free XML Master I10-002 Real Questions (page: 8)

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]
<TestML>
<person>
<name>John Smith</name>
<phone>03-000-999</phone>
<cellPhone>00-1111-2222</cellPhone>
</person>
</TestML>

  1. <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>
  2. <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>
  3. <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>
  4. It is not possible to implement a function of the type proposed.

Answer(s): C



Push the Exhibit Button to load the referenced "XML Document". Create an XML Schema Document for "XML Document". The definitions of this XML Schema Document require that the value of the level attribute of the record element must be singularly unique within the XML document, and further, that the level attribute of the scenario element must reference the value of the level attribute of the record element. Select which of the following correctly describes what should be written in " XML Schema " document (1).

  1. <xs:element name="TestML" type="testmlType">

    < xs:unique name= " LEVEL " >
    <xs:selector xpath= " record " />
    <xs:field xpath= " record/@level " />
    </ xs:unique >
    < xs:ref name= " levelRef " refer= " LEVEL " >
    <xs:selector xpath= " scenario " />
    <xs:field xpath= " scenario/@level " />
    </ xs:ref >
    </xs:element>
  2. <xs:element name="TestML" type="testmlType">
    < xs:unique name= " LEVEL " >
    <xs:selector xpath= " record " />
    <xs:field xpath= " @level " />
    </ xs:unique >
    < xs:ref name= " levelRef " refer= " LEVEL " >
    <xs:selector xpath= " scenario " />
    <xs:field xpath= " @level " />
    </ xs:ref >
    </xs:element>
  3. <xs:element name="TestML" type="testmlType">
    < xs:key name= " LEVEL " >
    <xs:selector xpath= " record " />
    <xs:field xpath= " record/@level " />
    </ xs:key >
    < xs:keyref name= " levelRef " refer= " LEVEL " >
    <xs:selector xpath= " scenario " />
    <xs:field xpath= " scenario/@level " />
    </ xs:keyref >
    </xs:element>
  4. <xs:element name="TestML" type="testmlType">
    < xs:key name= " LEVEL " >
    <xs:selector xpath= " record " />
    <xs:field xpath= " @level " />
    </ xs:key >
    < xs:keyref name= " levelRef " refer= " LEVEL " >
    <xs:selector xpath= " scenario " />
    <xs:field xpath= " @level " />
    </ xs:keyref >
    </xs:element>

Answer(s): D



Push the Exhibit Button to load the referenced "XML Document". Choose the XML Schema Document that correctly defines the structure of "XML Document".

  1. <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>
  2. <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= " tns:testmlType " >
    <xs:sequence>
    <xs:element ref= " tns:record " maxOccurs= " unbounded " /> </xs:sequence>
    </xs:complexType>
    <xs:element name= " record " type= " tns:recordType " /> <xs:complexType name= " tns:recordType " >
    < xs:attribute ref="tns:level" />
    < xs:attribute ref="tns:data" />
    </xs:complexType>
    < xs:attribute name="tns:level" type= " xs:int " />
    < xs:attribute name="tns:data" type= " xs:int " />
    </xs:schema>
  3. <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 ref="tns:level" />
    < xs:attribute ref="tns:data" />
    </xs:complexType>
    < xs:attribute name="level" type= " xs:int " />
    < xs:attribute name="data" type= " xs:int " />
    </xs:schema>
  4. <xs:schema xmlns:xs= " http://www.w3.org/2001/XMLSchema "
    targetNamespace= " urn:xmlmaster:testml "
    xmlns:tns= " urn:xmlmaster:testml " >
    <xs:element name= " TestML " >
    <xs:complexType>
    <xs:sequence>
    <xs:element name= " record " maxOccurs= " unbounded " > <xs:complexType>
    <xs:attribute name= " tns:level " type= " xs:int " /> <xs:attribute name= " tns:data " type= " xs:int " /> </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>

Answer(s): C



Select which of the following correctly describes the results of performing a validation check on "XML Document". Assume that the XML parser correctly processes the XML schema no Name space Schema Location attribute and the schema Location attribute.

  1. Valid
  2. The coding for the XML Schema Document is not appropriate; therefore, an error is thrown (initial error) when processing the "testml.xsd" import element
  3. The coding for the XML Schema Document is not appropriate; therefore, an error is thrown (initial error) when processing the "testml.xsd" "<xs:element ref="rec:record" maxOccurs="unbounded" />"
  4. No processing error, but is not valid.

Answer(s): A



Select which of the following DOM (Level 2) nodes does not hold a value (returns "null"). (Multiple answers possible. Select two.)

  1. Attr
  2. Comment
  3. Element
  4. Document

Answer(s): C,D



Share your comments for XML Master I10-002 exam with other users:

V
VoiceofMidnight
12/17/2023 4:07:00 PM

Delayed the exam until December 29th.

U
Umar Ali
8/29/2023 2:59:00 PM

A and D are True

V
vel
8/28/2023 9:17:09 AM

good one with explanation

G
Gurdeep
1/18/2024 4:00:15 PM

This is one of the most useful study guides I have ever used.

AI Tutor 👋 I’m here to help!