XML Master: Professional V2 (I10-002) Free Practice Test
Question 1
Which of the following correctly describes a WSDL (WSDL 1.1) definition defining a certain service specification?
Correct Answer: A
Question 2
Which of the following correctly describes the DOM (Level 2) Node interface?
Correct Answer: B
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".
[XML Schema]
<xsd:schema xmlns:xsd=http://www.w3.org/2001/XMLSchema
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
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).
Perform XSLT transformation on the "XML Document" using the following "XSLT Style Sheet".
[XML Schema]
<xsd:schema xmlns:xsd=http://www.w3.org/2001/XMLSchema
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
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).
Correct Answer: A
Question 4
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.
[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.
Correct Answer: B
Question 5
Which of the following correctly describes the SOAP (SOAP 1.1) message sent from the client side to the service side?
Correct Answer: A
Question 6
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;
}
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;
}
Correct Answer: A
Question 7
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]
<NewsML>
<NewsItem>
<ContentItem>
<DataContent></DataContent>
</ContentItem>
</NewsItem>
</NewsML>
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.
[XML Document]
<NewsML>
<NewsItem>
<ContentItem>
<DataContent></DataContent>
</ContentItem>
</NewsItem>
</NewsML>
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.
Correct Answer: B
Question 8
Which of the following sentences does not correctly describe a SAX DefaultHandler
Correct Answer: A