|
-
March 11th, 2007, 10:35 AM
#1
XPATH and concat
We have an xml viz.
<element>
<component>....</component>
<event>....</event>
<event>....</event>
<event>....</event>
<event>....</event>
</element>
The number of events will be dynamic.
For a relevant component,we need to return the cooresponding events pipe-delimited.
We arrive at the particular component through SelectNodes - is there a smart,concise XPATH expression which can allow me to return the set of events in the way we want,rather than recursing through the set.
Note that component and event nodes are parent(ed) by 'element'.
We are using javascript.
-
March 25th, 2007, 01:31 PM
#2
Re: XPATH and concat
Look at the string-join() xpath method.
"The Chicken and Rice MRE is not a personal lubricant."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|