XML elements cannot be empty

  1. True

  2. False


Correct Option: B

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) True - This option is incorrect because XML elements can indeed be empty. In XML, an element can be represented as an empty element by using a self-closing tag, such as ``. This indicates that the element has no content and does not require a closing tag.

Option B) False - This option is correct because XML elements can be empty. As mentioned earlier, an element can be represented as an empty element using a self-closing tag in XML.

The correct answer is B. XML elements can be empty.

Find more quizzes: