XML Hierarchical Data Model - Simple Explanation
What is it?
The XML Hierarchical Data Model is a way to store and organize data in a tree-like structure using XML
(eXtensible Markup Language).
Key Points:
- Tree Structure: Data is arranged like a tree (root -> branches -> leaves).
- Parent-Child Relationship: One element can have other elements inside it.
- Tags: Data is stored using tags like <student>, </student>.
- Root Element: One single top-level element in every XML file.
Example:
<school>
<student>
<name>Alice</name>
<roll>101</roll>
</student>
<student>
<name>Bob</name>
<roll>102</roll>
</student>
</school>
Why it is useful?
- Easy to read and share data.
- Used in web apps, mobile apps, and databases.
- Can be queried using XPath and XQuery.
- Supported by many advanced databases.
Where it is used?
XML Hierarchical Data Model - Simple Explanation
- Web services (SOAP)
- Mobile apps (Android XML)
- Office files (Word, Excel)
- Configuration files