attribute

<element name="element-name">
	<attribute name="attribute1">
		<text/>
	</attribute>
	<attribute name="attribute2">
		<text/>
	</attribute>
</element>
			
  • Defines an XML Attribute.

  • The 'name' attribute is used to define the name of the attribute.

  • The 'ns' attribute is used to define the namespace the attribute is in.

  • As value it can have any data-type, list and name pattern.

  • Cannot define defaults for attributes.

  • Attributes and Elements can be defined in the same way.

  • Attributes and Elements can be interchanged.

  • Order of elements is insignificant.