41. DOM Tree title author whitespace whitespace whitespace version whitespace whitespace number whitespace whitespace uct whitespace 1.0 test XML document Pat Pukram Attribute List email=pat@cs.uct.ac.za office=410 type=lecturer document
79. XPath Shorthand Parent node .. Version nodes for which “number” has content of “1.0” version[number=‘1.0’] Version nodes that have “number” children version[number] Context node . All author nodes that are descendent from top level //author Last title within uct node at top level of document /uct/title[last()] First author node author[1] “ office” attribute @office All children * “ title” children title What it selects in current context Expression
112. Tree Representation Nodes Note: Whitespace nodes have been ignored! Links Pat Pukram Text 8 test XML document Text 3 number Element 10 1.0 Text 11 lecturer type Attribute 7 version Element 9 title Element 2 author Element 4 [email_address] email Attribute 5 410 office Attribute 6 1 Id Element Type Value Label uct 9 1 10 9 7 4 8 4 3 2 4 1 5 4 6 4 10 1 Parent id 11 2 Child id
113. Relation Representation main table author table uct Institute test XML document Title id VersionNumber 1 1.0 1 id Pat Pukram Author [email_address] Email Type Office lecturer 410