jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danveno <danv...@163.com>
Subject XPATH special characters
Date Wed, 18 Apr 2012 13:17:45 GMT

Hello,everyone:
 I am using xpath to search for html type node like this:
  xpath = "/"
							+ ISO9075.encodePath(resVo.getPath())
							+ "//element(*, nt:unstructured)[type='html'] order by @general.title decending";

However, i can not get the result of "/yaohaishibei8290/peifangkeli1390/peifangkelizhonglei2652/danweibaozhuang(50zhong)9011/mahuangkeli6429",by
assign resVo.getPath()="/yaohaishibei8290"
Why?
Is it because in the path there is some special characters"(" and ")"?
How can I solve this problem, so that  i can get what i what by using this XPATH query? 
--------------
danveno
Mime
View raw message