Question 21

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?
  • Question 22

    When processing the following "XML Document" according to the method shown by "SAX Processing," which of the following correctly describes the output results (println method output)?

    Settings are such that the SAX parser is namespace aware and performs a validation check against the "XML Schema" ("XML Schema" referenced when the Exhibit Button is pushed). Assume that the processed XML Document has no indents (ignorable white space such as line feeds, tabs, etc.). Use the following "ContentHandlerImpl" class, and parse the XML Document using SAX. Settings are such that the SAX parser is namespace aware and performs a validation check against the "XML Schema" ("XML Schema" referenced when the Exhibit Button is pushed).
  • Question 23

    Push the Exhibit Button to load the referenced "XML Document".
    [XML Document]
    <TestML xmlns="urn:xmlmaster:testml">
    <record level="1" data="100" />
    <record level="2" data="250" />
    </TestML>
    Choose the XML Schema Document that does not correctly define the structure of the "XML Document".
  • Question 24

    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 attribute of the record element must be singularly unique within the XML document, and further, that the level attribute of the scenario element must reference the value of the level attribute of the record element. Select which of the following correctly describes what should be written in " XML Schema " document (1).
  • Question 25

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