- Ante.lv
- Introduction to Oracle FM
- XPath, XSLT and XQuery - Exercises
- Write XPath Expressions
Write XPath Expressions
Last modified by superadmin on 2018-01-12 21:33
Write XPath Expressions
Public source: http://java-eim.googlecode.com/svn/trunk/java-eim-demo-miscellaneous Local source: /home/student/workspace/java-eim-demo-miscellaneous Technologies: Java (J2SDK 1.6), Ant and Maven2 build tools, JDeveloper IDE, Xerces XML library, simple edit and command-line utilities Estimated time: 15 minutes
Activities
- Edit the file lv.webkursi.klucis.eim.demo.miscellaneous.xpath.SimpleXmlDataReaderTest, and complete both TODOs, which are written in this test code. I.e. instead of XPath expression "//Currency" (which would select all the "Currency" elements somewhere in the document), write an appropriate XPath expression (i.e. to select the currencies that start with letter "A", and to select the exchange rate for "EUR").
- You can control your success by running the JUnit tests. They should all 3 become green, if your solution is correct.