See separate window.
A certain Web application displays user information according to user input via Web browser. The XML data managing user information is as shown in [example.xml] (separate window). The following [XQuery] is executed when the Web application retrieves user information from [example xml].
[XQuery]
fn:doc("example.xml")//data[userid = "(1)"][password = "(2)"]
}
At this time, the Web application completes the [XQuery] by replacing (1) and (2) with the user input character string, and executes the query.
No character escapes (e.g. convert "<" to "<") are performed for character string input by the user. Select two of the following that produces the query execution result in [Execution Result] (separate window) when the character string is as shown in each answer choice.
Select the correct result of executing the following [XQuery] on [example xml] referenced in a separate window.
Assume that a certain XMLDB can be configured to [Simple Validation Mode] when inserting an XML document.
[Simple Validation Mode] checks for (1) through (4) below, and will not insert any non-conforming XML document into the XMLDB.
[Simple Validation Mode] does not check for anything other than (1) through (4) below.
[Simple Validation Mode]
(1) The XML document is a well-formed XML document
(2) No elements or attributes not declared in the XML Schema are present in the XML document
(3) Elements within the XML document follow the number of occurrences (root element (document element) must occur once) defined in the XML Schema
(4) Attributes within the XML document follow the allowed occurrences defined in the XML Schema
Select the correct result of inserting the following [XML Document] via [Simple Validation Mode] when using the [XML Schema] referenced in a separate window.
Assume that a certain XMLDB can perform a validation check using DTD when inserting an XML document. Select two of the following that are unsuitable when using the xml:id attribute to manage the uniqueness of XML document elements. Assume that the XMLDB can properly process the xml:id attribute, and that an error is reported when a violation of the xml:id specification occurs.
Select the correct result of executing the following [XQuery] on [example xml] referenced in a separate window.
[XQuery]
{fn:doc("example.xml")/example/record/data[@condition="good"][2]}
{fn:doc("example.xml")/example/record/data[2][@condition="good"]}
Submit Cancel