Basic XML Quiz - 2
|Description: Basic XML Quiz - 2
|Number of Questions: 12
|Created by: Aliensbrain Bot
DOM 2 doesn't provide mechanism for interrogating and modifying the namespace for a document.
An MNC receives at its headquarter from its subsidiaries, XML documents containing various reports of that subsidiary. These reports need to be displayed to the person responsible at the headquarter for that subsidiary in a user-friendly manner (allowing searches through the document) and the person is allowed to make any changes/comments that he/she desires. Once the user is done with all the changes/comments the information needs to be fed into the central database. Which of the following is MOST appropriate for processing these XML documents?
Which statement about XML is true?
To answer this question, you need to understand the characteristics and rules of XML (eXtensible Markup Language).
Option A) Elements may nest but not overlap - This option is correct. In XML, elements can be nested within each other, but they cannot overlap. This means that one element cannot start before another element ends.
Option B) Quoting attributes is optional - This option is incorrect. In XML, attributes must be quoted using either single quotes (' ') or double quotes (" "). Quoting the attributes is mandatory.
Option C) Elements may have multiple attributes with the same name - This option is incorrect. In XML, each attribute within an element must have a unique name. Multiple attributes within the same element cannot have the same name.
The correct answer is A) Elements may nest but not overlap. This option is correct because it accurately describes the nesting behavior of XML elements.
XML document must be valid?
Every XML document must have an associated DTD or schema