XML
Introduction
XML elements
XML elements
- An element is a unit of XML data that begins with a start tag and ends with an end tag.
- The start tag provides the name of the element and contains any attributes assigned to the element.
- The end tag repeats the element name, prefixed with a slash (/).
- The text between an element's start and end tags is called the element's content.
- Elements can contain other elements:
- A child element is one that's contained within another element.
- The element that contains a child element is known as the child's parent element.
- The highest-level parent element is known as the root element.
- Child elements can repeat within a parent element, but an XML document can have only one root element.