Navigating the XML Tree
Syd Bauman
2012-06-04
XML representations
Sample Portion of TEI Tree
Walking the Tree
tree (with
self::
)
descendants (
child::
and
descendant::
)
ancestors (
parent::
and
ancestor::
)
preceding (
preceding::
and
preceding-sibling::
)
following (
following::
and
following-sibling::
)
axes
:-)
XPath …
basic filepath-like path expressions
Try it!
XPath axes: me, my descendants, and my ancestors
XPath axes: following, preceding, and attributes
Don’t want them all?
predicates
Sample Document Instance
XSLT View
Navigating the XML Tree
© 2011 Syd Bauman, Martin Holmes, and the Women Writers Project This TEI-encoded XML file is available under the terms of the Creative Commons Attribution-ShareAlike 3.0 (Unported) license.