1 Crore+ students have signed up on EduRev. Have you? Download the App |
What is the purpose of querying in XML databases?
What is the role of XQuery in XML databases?
Consider the following XML document:
<books>
<book>
<title>Harry Potter and the Philosopher's Stone</title>
<author>J.K. Rowling</author>
<year>1997</year>
</book>
<book>
<title>The Hobbit</title>
<author>J.R.R. Tolkien</author>
<year>1937</year>
</book>
</books>
Which XQuery expression retrieves the titles of all books in the XML document?
Consider the following XML schema definition:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="person">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<xs:element name="age" type="xs:integer"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Which XML document is valid according to the above schema?
Which type of XML data storage model provides faster access to individual XML elements?
Consider the following XML document:
<company>
<employee>
<name>John</name>
<department>IT</department>
</employee>
<employee>
<name>Sarah</name>
<department>Finance</department>
</employee>
</company>
Which XQuery expression retrieves the names of employees in the IT department?
What is the purpose of an XML namespace?
What are some common applications of XML?
How does an object-based database differ from a relational database?
Consider the following XML document:
<students>
<student>
<name>John</name>
<age>20</age>
<grade>A</grade>
</student>
<student>
<name>Sarah</name>
<age>22</age>
<grade>B</grade>
</student>
</students>
Which XQuery expression retrieves the names of students with a grade of 'A'?
Consider the following XML schema definition:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="car">
<xs:complexType>
<xs:sequence>
<xs:element name="brand" type="xs:string"/>
<xs:element name="year" type="xs:integer"/>
</xs:sequence>
<xs:attribute name="color" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:schema>
Which XML document is valid according to the above schema?
Which storage model is commonly used for representing XML documents as a collection of trees?
75 videos|44 docs
|
75 videos|44 docs
|