|
|
A. W. Dunstan wrote:
<top>
<date>
<year>2008</year>
<month>07</month>
<day>18</day>
<date>
</top>
I'd like to do something like this (in Java):
String date = anXPathObject.evaluate("/top/date/[day,month,year]", doc);
and wind up with date having a value of "18072008". The "[day,month,year]"
(or whatever the syntax is) would tell XPath 'I
want /top/date/day, /top/date/month and /top/date/year extracted and
concatenated'.
The XPath expression is
concat(/top/date/day, /top/date/month, /top/date/year)
--
Martin Honnen
http://JavaScript.FAQTs.com/
|
|