On the Wire
XML In the News
No current headlines.


In Brief
Hierarchical Trees in XML
Table of Contents
1 Internet Explorer's Structural View
2 Nodes
3 Trees in Linguistics
4 Related Pages

1 Internet Explorer's Structural View

Internet Explorer's default view for an XML file displays the document's hierarchical structure. The minus and plus signs allow the document to be displayed as a collapsible outline -- indeed, as a collapsible tree:


To view an XML document as a collapsible tree in Internet Explorer, make sure the document does not contain a reference to an XSL stylesheet. (In the image above, on the second and third lines, you can see that the stylesheet reference is commented out.)
In XML, various concepts, most of which spring from the way we speak about trees or families, are used to express relationships within a document's hierarchical tree structure. At the base of its hierarchy, each tree has a root element, and it can be seen in Internet Explorer by clicking on the first minus sign shown in the document. From the root node stems a hierarchy of other branches and leaves. Leaves are terminal elements: They do not contain child elements.

2 Nodes

Each element in a tree structure is called a node. Relationships among nodes are expressed using metaphors borrowed from families: The root node, for instance, is the parent of all the other nodes, called children; together they enter into a parent-child relationship. Although a parent element can have multiple children, each child node has exactly one parent node. XML uses such constructs as parent, child, sibling, ancestor, and descendant in keywords, expressions, and functions.

3 Trees in Linguistics

Hierarchical trees are also frequently used to express relationships in linguistics. The following example, marked up in XML, reveals the hierarchical structure of the atomic syntactic elements that make up a sample sentence:
<s>
  <np><det>The</det><n>woman</n></np>   
  <vp><v>saw</v> 
    <np><det>the</det><n>man</n>
      <pp><p>in</p>
        <np><det>the</det><n>park</n></np>
      </pp>
    </np>
  </vp>
</s>
More on Hierarchical Trees in Phonology.

4 Related Pages

Google       

Criticism.com Web

cover artHead First HTML with CSS & XHTML (Head First)
O'Reilly Media, Inc.
New $22.02
cover artHTML for the World Wide Web with XHTML and CSS: Visual QuickStart Guide, Fifth Edition
Peachpit Press
New $14.29
cover artProfessional Ajax (Programmer to Programmer)
Wrox
New $25.19
cover artService-Oriented Architecture : Concepts, Technology, and Design
Prentice Hall PTR
New $38.97
cover artFileMaker Pro 8: The Missing Manual
O'Reilly Media, Inc.
New $22.02
cover artService-Oriented Architecture : A Field Guide to Integrating XML and Web Services
Prentice Hall PTR
New $28.34
cover artJavaScript & DHTML Cookbook
O'Reilly Media, Inc.
New $25.17
cover artXML in a Nutshell, Third Edition
O'Reilly Media, Inc.
New $25.17
cover artFrontPage 2003: The Missing Manual (Missing Manual)
O'Reilly Media, Inc.
New $18.87
cover artHTML & XHTML: The Definitive Guide, Fifth Edition
O'Reilly Media, Inc.
New $25.17
(Prices May Change)
Privacy Information

cover artOracle HTML DB Handbook (Oracle Press)
McGraw-Hill Osborne Media
New $31.49
cover artAjax Patterns and Best Practices (Expert's Voice)
Apress
New $28.34
cover artHTML for Dummies
For Dummies
New $18.89
cover artDynamic HTML: The Definitive Reference (2nd Edition)
O'Reilly Media, Inc.
New $37.77
cover artLearning XML, Second Edition
O'Reilly Media, Inc.
New $25.17
cover artGoogle Maps Hacks (Hacks)
O'Reilly Media, Inc.
New $18.89
cover artBeginning XML (Programmer to Programmer)
Wrox
New $25.19
cover artXML for the World Wide Web: Visual QuickStart Guide
Peachpit Press
New $12.99
cover artCSS Cookbook
O'Reilly Media, Inc.
New $22.02
cover artProfessional SQL Server 2005 XML (Programmer to Programmer)
Wrox
New $31.49
(Prices May Change)
Privacy Information