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-002 Exam - Topic 3 Question 105 Discussion

Push the Exhibit Button to load the referenced "XML Document". When processing the "XML Document" according to the method shown by "DOM Processing," which of the following is the most appropriate expression of the results under XML 1.0? Line feeds and/or indents are not reflected in the results.Although the expected processing result is choice "B", processing may not occur as expected.[DOM Processing]Process XML using the following method.Document output = createXML( doc, impl );The variable doc here references the Document instance of the loaded XML Document.The variable impl here references the DOMImplementation instance.The DOM parser is namespace aware.Assume no execution errors.}return output;}
A) <VisitList xmlns='urn:xmlmaster:NEWLIST'> <Visit> <Worker xmlns='urn:xmlmaster:WORKER' Name='Jeff Workman'/> <Activity xmlns='urn:xmlmaster:VISIT' Code='0001'> <DateTime>2004-07-01 09:00</DateTime> <Job Procedure='Install freezer' Time='2'/> <Status>COMPLETED</Status> </Activity> </Visit> </VisitList>
B) <VisitList xmlns='urn:xmlmaster:NEWLIST'> <Visit> <Date xmlns='urn:xmlmaster:LIST'>2004-07-01</Date> <Worker xmlns='urn:xmlmaster:WORKER' Name='Jeff Workman'/> <Activity xmlns='urn:xmlmaster:VISIT' Code='0001'> <DateTime>2004-07-01 09:00</DateTime> <Job Procedure='Install freezer' Time='2'/> <Status>COMPLETED</Status> </Activity> </Visit> </VisitList>
C) <VisitList xmlns='urn:xmlmaster:NEWLIST'> <Visit> <Worker xmlns='urn:xmlmaster:WORKER' Name='Jeff Workman'/> <Activity xmlns='urn:xmlmaster:VISIT' Code='0001'> <DateTime>2004-07-01 09:00</DateTime> <Job Procedure='Install freezer' Time='2'/> <Status>COMPLETED</Status> </Activity> <Activity xmlns='urn:xmlmaster:VISIT' Code='0002'> <DateTime>2004-07-01 13:00</DateTime> <Job Procedure='Install air conditioner' Time='2'/> <Status>WAITING</Status> </Activity> </Visit> </VisitList>
D) <VisitList xmlns='urn:xmlmaster:NEWLIST'> <Visit> <Date xmlns='urn:xmlmaster:LIST'>2004-07-01</Date> <Worker xmlns='urn:xmlmaster:WORKER' Name='Jeff Workman'/> <Activity xmlns='urn:xmlmaster:VISIT' Code='0001'> <DateTime>2004-07-01 09:00</DateTime> <Job Procedure='Install freezer' Time='2'/> <Status>COMPLETED</Status> </Activity> <Activity xmlns='urn:xmlmaster:VISIT' Code='0002'> <DateTime>2004-07-01 13:00</DateTime> <Job Procedure='Install air conditioner' Time='2'/> <Status>WAITING</Status> </Activity> <Visit> </VisitList>

XML I10-002 Exam - Topic 3 Question 105 Discussion

Actual exam question for XML's I10-002 exam
Question #: 105
Topic #: 3
[All I10-002 Questions]

Push the Exhibit Button to load the referenced "XML Document". When processing the "XML Document" according to the method shown by "DOM Processing," which of the following is the most appropriate expression of the results under XML 1.0? Line feeds and/or indents are not reflected in the results.

Although the expected processing result is choice "B", processing may not occur as expected.

[DOM Processing]

Process XML using the following method.

Document output = createXML( doc, impl );

The variable doc here references the Document instance of the loaded XML Document.

The variable impl here references the DOMImplementation instance.

The DOM parser is namespace aware.

Assume no execution errors.

}

return output;

}

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Leontine
10 hours ago
I feel like choice C could also be a contender since it includes an additional Activity, but I don't know if that's what the question is really asking for.
upvoted 0 times
...
Rodrigo
6 days ago
I remember practicing a similar question where the namespace awareness of the DOM parser affected the output. It’s tricky!
upvoted 0 times
...
Yuki
11 days ago
I think the expected result is choice B, but I'm not entirely sure why the Date element is necessary in that context.
upvoted 0 times
...
Marci
16 days ago
I’m leaning towards "A" since it seems to have all the necessary elements without adding anything extra, but I’m not completely confident.
upvoted 0 times
...
Melynda
21 days ago
I feel like the output might not match exactly what we expect, especially since line feeds and indents don't matter. Could it be choice "C"?
upvoted 0 times
...
Buck
26 days ago
I think choice "B" is correct because it adds the Date element, but I practiced a similar question where the output was different due to namespace issues.
upvoted 0 times
...
Doug
2 months ago
I remember that the DOM processing should maintain the structure of the XML, but I'm not sure if it will include the Date element in the output.
upvoted 0 times
...

Save Cancel