Answer:
If an XML element do not have a value inside it, then it is calles as an empty XML element.
It may have an attribute which consists of a value but the element itself is empty.
For Example:
<Student></Student>
In the above examle, as there is nothing between the closing and ending tags, it is said to be an empty element.
<Student age="10" name="Andy"></Student>
The above example also shows an empty element because, it has the attributes but there is no value within the element tags.
Asked In: Many Interviews |
Alert Moderator