Explain about an empty XML element..

 Posted by Bharathi Cherukuri on 8/27/2012 | Category: Web Services, Remoting Interview questions | Views: 3073 | Points: 40
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 

Comments or Responses

Login to post response