XML Attribute

XML Elements can have an optional list of attributes like HTML elements that provides the additional information about the element.Attributes is made of key / value pair separated by the equals (=) sign.Attributes is placed in opening tag and attribute values must always be quoted. Either single or double quotes can be used.



In the above example “msgid” is used as attribute.