Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

XML I10-003 Exam - Topic 2 Question 79 Discussion

Assume that [testmixsd] (referenced in a separate window) has been defined. Without rewriting this XML Schema Document ([testml-xsd]), create a new, separate XML Schema Document to partially change the schema definition replacing the phone element with a cellPhone element. As a result, the following [XML Document] will be valid against the new schema.Which of the following correctly descnbes the new XML Schema Document?Assume that the XMLDB or XML parser correctly processes the XML Schema schema Location attribute.[XML Document] John Smith000-1111-2222
B) <xs:schema xmlns:xs='http://wvwv.w3.org/2001/XMLSchema'> <xs:include schemaLocation='testmLxsd' /> <xs:element name='cellPhone' substitutionGroup='phone' type='xs:string' /> </xs:schema>
A) <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'> <xs:import schemaLocation='testml.xsd' /> <xs:element name='cellPhone' type='xs:string' /> </xs:schema>
C) <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'> <xs:redefine schemaLocation-'testml.xsd'> <xs:element name='cellPhone' base='phone' type='xs:string' /> </xs:redefine> </xs:schema>
D) This type of definition cannot be created using XML Schema

XML I10-003 Exam - Topic 2 Question 79 Discussion

Actual exam question for XML's I10-003 exam
Question #: 79
Topic #: 2
[All I10-003 Questions]

Assume that [testmixsd] (referenced in a separate window) has been defined. Without rewriting this XML Schema Document ([testml-xsd]), create a new, separate XML Schema Document to partially change the schema definition replacing the phone element with a cellPhone element. As a result, the following [XML Document] will be valid against the new schema.

Which of the following correctly descnbes the new XML Schema Document?

Assume that the XMLDB or XML parser correctly processes the XML Schema schema Location attribute.

[XML Document]

John Smith

000-1111-2222

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Fannie
15 days ago
I prefer option B. It uses substitution, which seems right.
upvoted 0 times
...
Shawna
20 days ago
I think option A is correct. It imports the original schema.
upvoted 0 times
...
Lai
25 days ago
This question is tricky. I feel unsure about the options.
upvoted 0 times
...
Rasheeda
1 month ago
Wait, can we really just swap elements like that?
upvoted 0 times
...
Lisbeth
1 month ago
D is definitely not true, we can redefine elements.
upvoted 0 times
...
Lavonna
1 month ago
C seems off, the syntax for redefine is wrong.
upvoted 0 times
...
Margarett
2 months ago
I think B is better, it uses substitution groups!
upvoted 0 times
...
Twana
2 months ago
Option A looks good, it imports the original schema.
upvoted 0 times
...
Adelina
2 months ago
I’m leaning towards option D because it seems tricky to change an element like that without rewriting the whole schema.
upvoted 0 times
...
Minna
2 months ago
The "xs:redefine" option seems like it could work, but I can't recall if it allows changing the element name completely.
upvoted 0 times
...
Georgene
2 months ago
I remember that "xs:import" is used to include other schemas, but I feel like it doesn't actually redefine anything.
upvoted 0 times
...
Anjelica
2 months ago
I think we practiced something similar where we had to replace elements in a schema, but I'm not sure if "substitutionGroup" is the right approach here.
upvoted 0 times
...

Save Cancel