The root element consists of a start tag and an end tag, and the rest of the content should be inserted between these tags.Īn example of the root element is shown below: There can be only one root element in an XML document. There are defined a start-tag or opening tag, for example: ,Īnd a corresponding end-tag or closing tag, for example.
The names of the tags should be properly defined, beginning with a character rather than arithmetic value.
XML is both machine-readable and human-readable format and can be edited in any text editor.