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. 
Created by Kalvis Apsītis on 2007-10-14 12:40
    
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.4 - Documentation