XML Attribute

In this tutorial you will learn about the XML Attribute and its application with practical example.

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.

Table Of Contents

Syntax:

Example:

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

 

In this tutorial we have learn about the XML Attribute and its application with practical example. I hope you will like this tutorial.