Updated xpath examples to use SDO xpath like syntax rather than traditional xpath queries.
The other exception is caused by the properties being in incorrect order. The code in the sample should be correct but will require that you are running on a recent tuscany implementation that pulls in EMF 2.2.1.
An svn commit to fix this issues was made at revision 453669. However, I believe I used the string Tuscany-628 to tag the commit, rather than TUSCANY-628 – hence the commit does not appear in the history for this JIRA.