When processing the following "XML Document" ("sample.xml") according to the method shown by "SAX processing," which of the following correctly describes the output results (print method output)?
Assume no compile errors. The SAX parser is a validating parser.
A. Error
B. Warning
C. WarningError
D. Fatal
正解:A
質問 2:
Push the Exhibit Button to load the referenced "XML Document". Create an XML Schema Document for "XML Document". The definitions of this XML Schema Document require that the value of the level element must be singularly unique within the XML Document. Which of the following correctly describes the XML Schema Document?
A. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="TestML" type="testmlType" />
<xs:complexType name="testmlType">
<xs:sequence>
<xs:element ref="record" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:element name="record" type="recordType">
<xs:unique name="levelUnique">
<xs:selector xpath="level" />
<xs:field xpath="." />
</xs:unique>
</xs:element>
<xs:complexType name="recordType">
<xs:sequence>
<xs:element ref="level" />
<xs:element ref="data" />
</xs:sequence>
</xs:complexType>
<xs:element name="level" type="xs:int" />
<xs:element name="data" type="xs:int" />
</xs:schema>
B. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="TestML" type="testmlType">
<xs:unique name="levelUnique">
<xs:selector xpath="record/level" />
<xs:field xpath="record/level" />
</xs:unique>
</xs:element>
<xs:complexType name="testmlType">
<xs:sequence>
<xs:element ref="record" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:element name="record" type="recordType" />
<xs:complexType name="recordType">
<xs:sequence>
<xs:element ref="level" />
<xs:element ref="data" />
</xs:sequence>
</xs:complexType>
<xs:element name="level" type="xs:int" />
<xs:element name="data" type="xs:int" />
</xs:schema>
C. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="TestML" type="testmlType" />
<xs:complexType name="testmlType">
<xs:sequence>
<xs:element ref="record" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:element name="record" type="recordType">
<xs:unique name="levelUnique">
<xs:selector xpath="level" />
<xs:field xpath="level" />
</xs:unique>
</xs:element>
<xs:complexType name="recordType">
<xs:sequence>
<xs:element ref="level" />
<xs:element ref="data" />
</xs:sequence>
</xs:complexType>
<xs:element name="level" type="xs:int" />
<xs:element name="data" type="xs:int" />
</xs:schema>
D. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="TestML" type="testmlType">
<xs:unique name="levelUnique">
<xs:selector xpath="record" />
<xs:field xpath="level" />
</xs:unique>
</xs:element>
<xs:complexType name="testmlType">
<xs:sequence>
<xs:element ref="record" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:element name="record" type="recordType" />
<xs:complexType name="recordType">
<xs:sequence>
<xs:element ref="level" />
<xs:element ref="data" />
</xs:sequence>
</xs:complexType>
<xs:element name="level" type="xs:int" />
<xs:element name="data" type="xs:int" />
</xs:schema>
正解:D
質問 3:
Which of the following correctly describes the content of SOAP specification 1.1? (Multiple answers possible. Select two.)
A. The specification designates encryption procedures for SOAP messages
B. The specification designates the transmission method for sending SOAP messages using SMTP protocol
C. The specification defines the SOAP message structure and the method for mapping application- defined data types to XML
D. The specification includes a definition of XML included in the SOAP Body element
正解:C,D
質問 4:
Select which of the following correctly describes the results of performing a validation check on "XML Document". Assume that the XML parser correctly processes the XML schema no Name space Schema Location attribute and the schema Location attribute.

A. Valid
B. The coding for the XML Schema Document is not appropriate; therefore, an error is thrown (initial error) when processing the "testml.xsd" import element
C. No processing error, but is not valid.
D. The coding for the XML Schema Document is not appropriate; therefore, an error is thrown (initial
error) when processing the "testml.xsd" "<xs:element ref="rec:record" maxOccurs="unbounded" />"
正解:A
質問 5:
Which of the following describes the most correct call order of the ContentHandler interface methods when parsing the following "XML Document" using a validating SAX parser? This question reflects line feeds within the XML Document.
A. startDocument - startElement - ignorableWhitespace - startElement - characters - endElement - ignorableWhitespace - endElement - endDocument
B. startDocument - startElement - startElement - characters - endElement - ignorableWhitespace - endElement - endDocument
C. startDocument - startElement - characters - startElement - characters - endElement - characters - endElement - endDocument
D. startDocument - startElement - startElement - characters - endElement - endElement - endDocument
正解:C
質問 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.
[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.
A. <List xmlns="urn:xmlmaster:LIST">
<Activity xmlns="urn:xmlmaster:VISIT" Code="0003">
<DateTime>2004-07-01 16:00</DateTime>
<Job Procedure="Clean air conditioner" Time="2"/>
<Status>WAITING</Status>
</Activity>
</List>
B. <List xmlns="urn:xmlmaster:LIST">
<Worker xmlns="urn:xmlmaster:WORKER" Name="Jim Worker"/>
<Activity xmlns="urn:xmlmaster:VISIT" Code="0003">
<DateTime>2004-07-01 16:00</DateTime>
<Job Procedure="Clean air conditioner" Time="2"/>
<Status>WAITING</Status>
</Activity>
</List>
C. <List xmlns="urn:xmlmaster:LIST">
<VisitList>
<Activity xmlns="urn:xmlmaster:VISIT" Code="0003">
<DateTime>2004-07-01 16:00</DateTime>
<Job Procedure="Clean air conditioner" Time="2"/>
<Status>WAITING</Status>
</Activity>
</VisitList>
</List>
D. <List xmlns="urn:xmlmaster:LIST">
<Worker xmlns="urn:xmlmaster:WORKER" Name="Jim Worker"/>
<VisitList>
<Activity xmlns="urn:xmlmaster:VISIT" Code="0003">
<DateTime>2004-07-01 16:00</DateTime>
<Job Procedure="Clean air conditioner" Time="2"/>
<Status>WAITING</Status>
</Activity>
</VisitList>
</List>
正解:B
1358 お客様のコメント
クリック」





Inoue -
Pass4Testの問題集は価格が安いのに電子版ももらえて素晴らしい。I10-002試験用のテキストです。