XPath.examples revision 45ad02e03fb913ba373d8fdcfe50244be3df31ea
011173392d3a1a59092095d5a24857134cb16f93Adam Moore//BBB[not(@*)]
011173392d3a1a59092095d5a24857134cb16f93Adam Moore//BBB[@id='b1']
011173392d3a1a59092095d5a24857134cb16f93Adam Moore//BBB[@name='bbb']
011173392d3a1a59092095d5a24857134cb16f93Adam Moore//BBB[normalize-space(@name)='bbb']
011173392d3a1a59092095d5a24857134cb16f93Adam Moore//*[count(BBB)=2]
011173392d3a1a59092095d5a24857134cb16f93Adam Moore//*[count(*)=2]
011173392d3a1a59092095d5a24857134cb16f93Adam Moore//*[count(*)=3]
011173392d3a1a59092095d5a24857134cb16f93Adam Moore//*[name()='BBB']
011173392d3a1a59092095d5a24857134cb16f93Adam Moore//*[starts-with(name(),'B')]
011173392d3a1a59092095d5a24857134cb16f93Adam Moore//*[contains(name(),'C')]
011173392d3a1a59092095d5a24857134cb16f93Adam Moore//*[string-length(name()) = 3]
4901cf3193a7929385b6765404170cf6daf6ff5aAdam Moore//*[string-length(name()) < 3]
011173392d3a1a59092095d5a24857134cb16f93Adam Moore//*[string-length(name()) > 3]
011173392d3a1a59092095d5a24857134cb16f93Adam Moore//CCC | //BBB
011173392d3a1a59092095d5a24857134cb16f93Adam Moore/descendant::*
//ZZZ/following::*
//GGG/preceding::*
//GGG/ancestor::*
//GGG/descendant::*
//GGG/following::*
//GGG/preceding::*
//GGG/self::*
/child::doc/child::chapter[position()=5]/child::section[position()=2]
/descendant::olist/child::item
child::chapter/descendant::para