XML TutorialLesson 4Free preview
XML Tree
This lesson is part of XML · All levels
Summary
XML is structured like a tree: there's one root element that clusters the child element, and each child can have another child. Each element has an opening tag, a content tag, and a closing tag, so the parent-child relationship becomes clear. The tree structure makes it easy for applications to trace data from root to leaf.
Key points
- XML documents have exactly one root element.
- Each element forms a node in the tree structure
- The relationship between the elements is expressed as parent and child
- Elements without children are called leaves or leaves
- Seamless indentation helps humans read the structure of the XML tree
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.