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 Exam I10-002 Topic 8 Question 64 Discussion

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

Use DOM programming to create XML according to the schema defined by NewsML (portions modified for this question). Push the Exhibit Button to load the referenced "XML Document".

[XML Document]

Load the "XML Document" and update the XML according to the method shown by "DOM Processing". Select which of the following correctly describes the results of performing a validation check on the created XML against the schema ("DTD" and "article.dtd"). Assume that "article.dtd" can be parsed normally during validation. The existence of a document type declaration during validation is not reflected.

[DOM Processing]

Create XML using the following method.

Document output = createXML( doc );

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

Assume no execution errors.

Show Suggested Answer Hide Answer
Suggested Answer: E

Contribute your Thoughts:

Lemuel
6 days ago
Wait, the question says the XML is created using DOM processing, so it should be well-formed. My money's on option D, the XML is valid against the schema.
upvoted 0 times
...
Mozell
9 days ago
This seems straightforward. The XML document is missing required elements, so it's not going to pass the schema validation. I'm going with option C.
upvoted 0 times
...
Beatriz
11 days ago
That's a good point, it's important to consider all aspects of the schema when validating the XML.
upvoted 0 times
...
Gail
15 days ago
I disagree, I believe the answer is C because not following element type declarations would also make the XML invalid.
upvoted 0 times
...
Beatriz
16 days ago
I think the answer is A because missing required attributes would make the XML invalid.
upvoted 0 times
...

Save Cancel