XML I10-002 XML Master Professional Application Developer Exam Practice Test

Page: 1 / 14
Total 80 questions
Question 1

Push the Exhibit Button to load the referenced "XML Document," and process XML using "DOM Processing".

Select 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.

[DOM Processing]

Process XML using the following method.

Document output = updateXML( doc );

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

The DOM parser is namespace aware.

Assume no execution errors.



Answer : C


Question 2

Under the SAX specification, which of the following is a method for determining whether to validate a document with the SAX parser?



Answer : A


Question 3

Use XSLT transformation to create XML according to the schema (portions modified for this question) defined by TravelXML. Perform XSLT transformation on the "XML Document" using the following "XSLT Style Sheet". Select which of the following correctly describes the results of performing a validation check on the post- transformation XML against the schema ("XML Schema" referenced when the Exhibit Button is pushed).



Answer : D


Question 4

When receiving an XML document following the DTD defined by NewsML (portions modified for this question), the document is processed via SAX programming. Push the Exhibit Button to load the referenced "DTD". When processing the following "XML Document" according to the method shown by "SAX Processing," which of the following correctly describes the output results (print method output)?

[DTD]

Note that the attribute value is not output for this question.

[XML Document]

The root element name (document element name) is "NewsML".

The XML document follows the "DTD" definition.

The XML Document has no document type declaration.

The XML Document is comprised of elements, attributes and character data; comments and CDATA secions, etc. are not included.

The XML Document is indented, and includes ignorable white spaces such as line feeds and tabs before the start-tags.

[SAX Processing]

Use the following "ContentHandlerImpl" class, and parse the XML Document using SAX.

Assume no execution errors.



Answer : B


Question 5

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.

[XML Document]

2004-07-01 13:00

WAITING

2004-07-01 16:00

WAITING

Assume that the processed XML Document has no indents (ignorable white space such as line feeds, tabs, etc.).

[DOM Procesing]

Create 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.



Answer : C


Question 6

Which of the following text strings is not output to the results document when performing an XSLT transformation on the following "XML Document" using the "XSLT Style Sheet" below? Note that the XSLT processor can output transformation results as a document. [XML Document]



Answer : C


Question 7

Push the Exhibit Button to load the referenced "XML Document." Assume that the "XML Document" is changed to the "Results XML Document." Select which XSLT style sheet correctly performs the transformation.

[XML Document]

ABC

Note that the XSLT processor can output transformation results as a document. (Multiple answers possible. Select two.)

[Results XML Document]

AC



Answer : B, D


Page:    1 / 14   
Total 80 questions