Question: what is the difference between elements and attributes in xml?
Answer: An element is an XML node - and it can contain other nodes, or attributes. ... It is an XML entity. An attribute is a descriptor. It can't contain anything and can only be a simple type.