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