When receiving an XML document following the schema defined by TravelXML (portions modified for this question), the document is processed via SAX programming. Push the Exhibit Button to load the referenced "XML Schema".
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)?
[XML Document]
The root element name (document element name) is "BookingNotification".
The XML document follows the "XML Schema" definition.
There is no DTD for the XML Document.
The XML Document is comprised of elements and character data; comments and CDATA sections, 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.
The SAX parser is namespace aware.
Assume no execution errors.}
A. A portion of character data of elements cannot be output
B. No character data of elements can be output
C. All character data of elements can be output, ignorable white spaces are not output
D. All character data of elements can be output, and ignorable white spaces are also output
正解:D
質問 2:
Push the Exhibit Button to load the referenced "testml.xsd". Assume that "testml.xsd" is defined. Without rewriting this XML Schema Document ("testml.xsd"), create a new, separate XML Schema Document to partially change the schema definition replacing the phone element with a cellPhone element. As a result, the following "XML Document" will be valid against the new schema. Which of the following correctly describes the new XML Schema Document?
Assume that the XML parser correctly processes the XML Schema schemaLocation attribute.
A. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:include schemaLocation="testml.xsd" />
<xs:element name="cellPhone" substitutionGroup="phone" type="xs:string" />
</xs:schema>
B. It is not possible to implement a function of the type proposed.
C. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import schemaLocation="testml.xsd" />
<xs:element name="cellPhone" type="xs:string" />
</xs:schema>
D. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:redefine schemaLocation="testml.xsd">
<xs:element name="cellPhone" base="phone" type="xs:string" />
</xs:redefine>
</xs:schema>
正解:A
質問 3:
When processing the following "XML Document" according to the method shown by "DOM Processing," which of the following correctly describes the output results (print method output)?
A. 44
B. 31
C. 43
D. 32
E. 33
F. 42
正解:D
質問 4:
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).
A. The post-transformation XML includes all of the required elements defined by the schema (all elements defined once they have appeared, namespace refleted); however, is not valid
B. The post-transformation XML is valid
C. The root element (document element) of the post-transformation XML is an empty element, and the post-transformation XML is not valid against the schema
D. The post-transformation XML does not include the required elements defined by the schema (all elements defined once they have appeared, namespace reflected); therefore, is not valid
正解:A
質問 5:
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.
A. The created XML does not include required attributes; therefore, is not valid against the schema
B. The created XML does not follow element type declarations; therefore, is not valid against the schema
C. The created XML is valid against the schema
D. The created XML has an illegal attribute value; therefore, is not valid against the schema
正解:A
質問 6:
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)?
A. East
B. EastWest
C. East&West
D. East<![CDATA[&]]>West
正解:C
質問 7:
Which of the following does not correctly describe WSDL (WSDL 1.1)?
A. Under the WSDL definition, you can use the import element to import another WSDL definition
B. When a service operation is a "Request-response" type, you can specify a fault element to designate the error message type as the child element of an operation element within the portType element
C. You do not need to specify a binding element when creating a WSDL definition
D. When a service operation is a "One-way" type, you can specify a fault element to designate the error message type as the child element of the operation element within the protType element
正解:D
質問 8:
Which of the following correctly explains SOAP (SOAP 1.1) and schema?
A. You cannot perform a validation check on the XML Document included in the SOAP Body element
B. By including a document type declaration in the SOAP message, you can perform a validation check on the XML Document included in the SOAP Body element
C. A SOAP message cannot include a DTD; however, other XML coded Schema Documents can be included as a part of the XML
D. An XML Document encoded according to the encoding method (SOAP Encoding) defined under the SOAP 1.1 specification can only be validated against W3C XML Schema
正解:C
内藤** -
Pass4Testさんの問題集はI10-002ていねい&わかりやすい解説で、受験直前までの仕上げ学習をガッチリサポート!