Oma profiilini
Keskustelualueen viestit
Blogit
Keskustelualueen viestit
Blogit
Week 12 (March 18 - 22)
$ javac xpathTest.java $ java xpathTest --nodes '//text()/..' ex_2_7_1.xml NODE #1: <b di="7" id="3">bli <c/> <c> <e>bla</e> </c> </b> NODE #2: <e>bla</e> NODE #3: <d>bou</d>
<a> <b /> <b /> </a>
and the class of XPath queries qn, where
q0 = /a/b
q1 = /a/b/../b
q2 = /a/b/../b/../b
and qn consists of q0 followed by n pairs of parent-child steps of the form ../b .
Express and test XPath queries 1 - 14 of Section 5.4.1 in the Textbook
on the movies.xml document. The eXist database system is recommended for this, or
you can use the xpathTest application as a (less user-friendly) alternative.