Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Combining xpath queries. please help [modified]

Combining xpath queries. please help [modified]

Scheduled Pinned Locked Moved XML / XSL
questioncomtoolsxmlhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Ista
    wrote on last edited by
    #1

    [ This has been answered ] My path is to ( my conditional ) /Events/CompanyABC/Transaction/ProductList/Product/Event/Code = 435 The actual node I want: /Events/CompanyABC/Transaction/ProductList/Product/LoanList/Loan/ReturnedType I tried this: //Events/CompanyABC/Transaction/ProductList/Product[./Event/Code = '435']/LoanList/Loan/ReturnedType But it doesn't return anything. How can I combine the conditional into the xpath statement. This has to be one string, I can't split it. Thanks, Nick -- modified at 13:04 Tuesday 24th October, 2006

    -------------------------------------------------------- 1 line of code equals many bugs. So don't write any!! My mad coder blog

    M 1 Reply Last reply
    0
    • I Ista

      [ This has been answered ] My path is to ( my conditional ) /Events/CompanyABC/Transaction/ProductList/Product/Event/Code = 435 The actual node I want: /Events/CompanyABC/Transaction/ProductList/Product/LoanList/Loan/ReturnedType I tried this: //Events/CompanyABC/Transaction/ProductList/Product[./Event/Code = '435']/LoanList/Loan/ReturnedType But it doesn't return anything. How can I combine the conditional into the xpath statement. This has to be one string, I can't split it. Thanks, Nick -- modified at 13:04 Tuesday 24th October, 2006

      -------------------------------------------------------- 1 line of code equals many bugs. So don't write any!! My mad coder blog

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Ista wrote:

      /Events/CompanyABC/Transaction/ProductList/Product/Event/Code = 435

      Is Code an attribute or an element? If it's an attribute, prefix it with @ in the query to indicate that it's an attribute name.

      --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

      I 1 Reply Last reply
      0
      • M Michael Dunn

        Ista wrote:

        /Events/CompanyABC/Transaction/ProductList/Product/Event/Code = 435

        Is Code an attribute or an element? If it's an attribute, prefix it with @ in the query to indicate that it's an attribute name.

        --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

        I Offline
        I Offline
        Ista
        wrote on last edited by
        #3

        lol. Nah thier all elements. And actually it worked. I just had the wrong events. Thanks for helping tho

        -------------------------------------------------------- 1 line of code equals many bugs. So don't write any!! My mad coder blog

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups