CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 1999
    Posts
    90

    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.

  2. #2
    Join Date
    Apr 2003
    Location
    Los Angeles area
    Posts
    776

    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
  •  





Click Here to Expand Forum to Full Width

Featured