Which of the following are correct statements with respect to XML? (i) It is…
2022
Which of the following are correct statements with respect to XML? (i) It is used to display data only. (ii) XML can be used as a database. (iii) XPATH is used to store the IP address of the server. (iv) XLL definition is used along with XML to specify the links with other documents.
Answer: C. Only (ii) and (iv) — XML (eXtensible Markup Language) is a markup language designed to structure, store, and transport data in a format that is both human-readable and…
- A.
Only (i) and (ii)
- B.
Only (i), (ii) and (iii)
- C.
Only (ii) and (iv)
- D.
Only (iii) and (iv)
Attempted by 300 students.
Show answer & explanation
Correct answer: C
XML (eXtensible Markup Language) is a markup language designed to structure, store, and transport data in a format that is both human-readable and machine-readable; it does not itself handle how data is displayed. Two related technologies are XPath, a query language for addressing and navigating nodes inside an XML document, and XLink/XLL (Extensible Linking Language), which defines how one XML document links to another.
(i) is false — XML's core role is to structure, store, and transport data; presenting/displaying it is handled separately by companion technologies such as XSLT or CSS, not by XML itself.
(ii) is true — because XML documents are self-describing and hierarchical, they can hold structured records; dedicated native-XML database systems (e.g., BaseX, eXist-db) store and query data directly in XML form.
(iii) is false — XPath's purpose is to address and navigate elements/nodes inside an XML document tree; storing a server's IP address is a network-configuration task unrelated to XPath.
(iv) is true — XLL (Extensible Linking Language), whose capabilities are now expressed through the W3C XLink and XPointer specifications, is used alongside XML to define hyperlink-style relationships between documents.
Cross-check against the offered combinations:
"Only (i) and (ii)" pairs the true statement (ii) with the false statement (i).
"Only (i), (ii) and (iii)" adds both false statements (i) and (iii) alongside the true statement (ii).
"Only (iii) and (iv)" pairs the true statement (iv) with the false statement (iii), and leaves out the true statement (ii).
Only statements (ii) and (iv) hold, so "Only (ii) and (iv)" is the correct combination.