View Question
View this question.
Add this question to a group or test by clicking the appropriate button below.
add this question to a test add this question to a group
Note: This question is included in a group.
The contents of the question may require the group's common instructions or reference text to be meaningful.
If so, you may want to add the entire group of questions to your test.
To do this, click on the group icon
in the blue box below.
If you choose to add only this question, common instructions or reference text will not be added to your test.
Answer these questions using your knowledge of XML.
-
What rules must a well-formed XML document conform to?
-
A well-formed document must conform to the following rules, among others:
1. Non-empty elements are delimited by both a start-tag and an end-tag.
2. Empty elements may be marked with an empty-element (self-closing) tag, such as <IAmEmpty />. This is equal to <IAmEmpty></IAmEmpty>.
3. All attribute values are quoted with either single (') or double (") quotes. Single quotes close a single quote and double quotes close a double quote.
4. Tags may be nested but must not overlap. Each non-root element must be completely contained in another element.
5. The document complies with its declared character encoding. The encoding may be declared or implied externally, such as in "Content-Type" headers when a document is transported via HTTP, or internally, using explicit markup at the very beginning of the document. When no such declaration exists, a Unicode encoding is assumed, as defined by a Unicode Byte Order Mark before the document's first character. If the mark does not exist, UTF-8 encoding is assumed.
6. Element names are case-sensitive. For example, the following is a well-formed matching pair:
-
A well-formed document must conform to the following rules, among others:

