Define element and attribute in an XML document.

From a start tag to end tag everything you see in a XML document, is XML element. It can contain other elements, attributes and texts.

An Attribute is a value that is used to define additional information about the element.
Let's take an example to understand it well:

<librarymembers>  

  <student id="001">  
     <name>Vimal</name>  
     <age>25</age>  
  </student>  
</librarymembers>   

In the above example, <student> is an element and id is an attribute of the <student> element.
Need Help? Contact Us.

Log in

*
*

Forgot password?

*

New User

*
*
*
*