Search found 2 matches

by fidanken
Tue Sep 13, 2005 10:09 am
Forum: General XML Questions
Topic: xpath - is it possible to do this?
Replies: 3
Views: 6041

i try with your suggest but i receive an xmlnodelist null,
if I insert descendant...so:

//bla[descendant::A/@Ruolo=1 or A/@Ruolo=12]

i find only nodes with Ruolo = 1

Does exist a metod to merge 2 xmlnodelist? so i could make 2 query and merge the result...

Tnks
Fid
by fidanken
Mon Sep 12, 2005 6:44 pm
Forum: General XML Questions
Topic: xpath - is it possible to do this?
Replies: 3
Views: 6041

xpath - is it possible to do this?

For example in this case: <bla id = 2> <A ruolo = 1> .... </A> </bla> <bla id = 10> <A ruolo = 12> .... </A> </bla> i have to select node whose have attribute ruolo like 1 or 12, i need both nodes. How can i do this? i made this: xmlSubTreeNode.SelectNodes("//bla[descendant::*/@Ruolo=1 or /@Ruo...