Xpath
-
Hi, Im quite new to xpath in .Net. I have an XML-structure shown below that contain measurements(diameters,areas etc) The one below includes two different measurements of an Bi diameter and also the mean value. I now want to extract the mean value.(the 5.0 tag. As mentioned ,the file consists of many different measurements using the same strucutre. With the following expression I manage to extract the value but then I also get all the following mean values from all of the other calculations. How do I extract ONLY that node. I would really appriciate some help thanks! Expression: //item/item/concept[@codValue='11820-8']/following-sibling::item/value[@codValue='R-00317']/following::value MeasureGroup Bi Diameter 4.9 Bi Diameter 5.1 Bi Diameter Mean 5.0
-
Hi, Im quite new to xpath in .Net. I have an XML-structure shown below that contain measurements(diameters,areas etc) The one below includes two different measurements of an Bi diameter and also the mean value. I now want to extract the mean value.(the 5.0 tag. As mentioned ,the file consists of many different measurements using the same strucutre. With the following expression I manage to extract the value but then I also get all the following mean values from all of the other calculations. How do I extract ONLY that node. I would really appriciate some help thanks! Expression: //item/item/concept[@codValue='11820-8']/following-sibling::item/value[@codValue='R-00317']/following::value MeasureGroup Bi Diameter 4.9 Bi Diameter 5.1 Bi Diameter Mean 5.0
I answered this cross-post in the XML forum. Please don't cross-post.
"We make a living by what we get, we make a life by what we give." --Winston Churchill