XPATH and concat

xml India
  • 14 years ago
    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.












Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone” - Bjarne Stroustrup