XPath for XML Navigation Janis Voigtl ander Technische Universit - PowerPoint PPT Presentation
XPath for XML Navigation Janis Voigtl ander Technische Universit at Dresden Summer Term 2009 XPath for Tree Navigation: An Example Document: A B B C D D E F F E F F F F Query: /descendant::D/child::F[position()=1] XPath for
Another Example Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box/item[@color="yellow"]
Another Example Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box/item[@color="yellow"]
Another Example Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box/item[@color="yellow"]
Another Example Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box/item[@color="yellow"]
Another Example Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box/item[@color="yellow"]
Another Example Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box/item[@color="yellow"]
Another Example Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box/item[@color="yellow"]
Another Example Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box/item[@color="yellow"]
Another Example Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box/item[@color="yellow"]
Another Example Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box/item[@color="yellow"]
Another Example Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box/item[@color="yellow"]
Another Example Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box/item[@color="yellow"]
Another Example Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box/item[@color="yellow"]
Another Example Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box/item[@color="yellow"]
Another Example Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box/item[@color="yellow"]
Another Example Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box/item[@color="yellow"]
Paths as Filter Expressions Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box[item]
Paths as Filter Expressions Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box[item]
Paths as Filter Expressions Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box[item]
Paths as Filter Expressions Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box[item]
Paths as Filter Expressions Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box[item]
Paths as Filter Expressions Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box[item]
Paths as Filter Expressions Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box[item]
Paths as Filter Expressions Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box[item] Note the difference to //box/item !
Nested Filter Expressions Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box[item[@color="yellow"]]
Nested Filter Expressions Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box[item[@color="yellow"]]
Nested Filter Expressions Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box[item[@color="yellow"]]
Nested Filter Expressions Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box[item[@color="yellow"]]
Nested Filter Expressions Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box[item[@color="yellow"]]
Nested Filter Expressions Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box[item[@color="yellow"]]
Nested Filter Expressions Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //box[item[@color="yellow"]]
Tricky Abbreviations Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: /descendant::item[1]
Tricky Abbreviations Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: /descendant::item[1]
Tricky Abbreviations Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: /descendant::item[1]
Tricky Abbreviations Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: /descendant::item[1]
Tricky Abbreviations Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: /descendant::item[1]
Tricky Abbreviations Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: /descendant::item[1]
Tricky Abbreviations Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: /descendant::item[1]
Tricky Abbreviations Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //item[1]
Tricky Abbreviations Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //item[1]
Tricky Abbreviations Document: doc box box box item item item item item color=“yellow” color=“yellow” color=“blue” color=“green” color=“blue” Query: //item[1]
Recommend
More recommend
Explore More Topics
Stay informed with curated content and fresh updates.