XML – Attributes

XML attributes are parameters with key-value pair syntax in an element. An element can have multiple attributes. If you have basic understanding about HTML you might have experienced the attributes like id=”class=” . In the same way the XML will have attributes in an element.


Attribute looks like a key value pair as below: