Forum Discussion
lakshmi
16 years agoOccasional Contributor
Hi
Below is the structure of the response xml that i am trying to parse
-s:envelop
-s:body
-AA
-BB
-CC
-DD1
@x: value1
y : value2
z : value3
.
.
-DD2
.
.
.
.
-DD3
.
.
-DD(n)
-EE1
-FF1
-CC
-DD(n+1)
@a :value4
a :value5
.
.
I am trying to capture the "values." of the individual node elements by looping,but am not sure how to get the children count for node given the x path like expression
here's a sample xpath expression
def hold = "//ns1:CC["+x+"]
where x is a running number.
Basically i need to get a child count for a Node but i only have the x path expression with me.Not sure how to proceed further.
Thanks,
Lakshmi
Below is the structure of the response xml that i am trying to parse
-s:envelop
-s:body
-AA
-BB
-CC
-DD1
@x: value1
y : value2
z : value3
.
.
-DD2
.
.
.
.
-DD3
.
.
-DD(n)
-EE1
-FF1
-CC
-DD(n+1)
@a :value4
a :value5
.
.
I am trying to capture the "values." of the individual node elements by looping,but am not sure how to get the children count for node given the x path like expression
here's a sample xpath expression
def hold = "//ns1:CC["+x+"]
where x is a running number.
Basically i need to get a child count for a Node but i only have the x path expression with me.Not sure how to proceed further.
Thanks,
Lakshmi
Related Content
- 4 years agoSuperTester