Combining xpath queries. please help [modified]
-
[ 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
-
[ 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
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
-
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
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