XML Elements vs Attributes
Different between element and attribute important to know because XML elements and attributes both way you can represent same things.
Definition : Attributed are the part of the markup (for identifiers of elements). Where as the element are part of the document to store data.
Distinction : Attributed specify when identifier of elements. And element specify contains for storing data.
Every document must have a one top level element called root element.
XML element contents are part of the basic document contents. that are store information data.
XML elements are represented by a tags.
If element contents absence(empty) then you can write element following two way to represent valid standard.
XML element can have attributes for identify elements.
XML attributes specified by name="value" pair inside the starting element. XML attribute values must be quoted.
XML standard specifies element may have define multiple attributes along with unique attribute name.