PDF File

Latest XML I10-002 Practice Questions BY Chen

Question 1

Which of the following is incorrect with respect to the subject of an XML-Signature?

  • A. The subject of the signature can be designated by URI
  • B. A signature cannot be applied to only a certain portion of data within an XML Document
  • C. A multiple number of different users can sign the single item subject of the signature
  • D. The subject of the signature can be HTML
Question 2

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.

  • A. The created XML does not include required attributes; therefore, is not valid against the schema
  • B. The created XML has an illegal attribute value; therefore, is not valid against the schema
  • C. The created XML does not follow element type declarations; therefore, is not valid against the schema
  • D. The created XML is valid against the schema