Diagramming the Tree Structure of an XML Document Adapted from MSDN DevSeries: Web 105- Introduction to XML
{ }Attributes XML Data Model XML is represented by a tree structure nodes of the tree contain the data Document { Nodes or Element <none> Text Text ... }Attributes Text Text
Customer Orders XML Example <customer_list> <!-- customer list --> <customer id=“345”> <name> <first>Jane</first> <last>Doe</last> </name> <orders> <order date=“07/16/98”/> <order date=“07/23/98”/> </orders> </customer> <customer id=“120”> … </customer_list > <none>
Customer Orders Tree Structure root Comment customer list customer customer id id 345 120 name orders <none> first last order order date date Jane Doe 07/16/98 07/23/98