XML finding element from node

  • Thread starter Thread starter NachoShaw
  • Start date Start date
N

NachoShaw

Guest
Hey

im currently getting data from XML by finding the element, checking for a node value that i already have and if true, getting the rest of the data from the element but in order to do this, i need to know the element first.

Is there a way of searching for the node value instead and if found, getting the element that owns it so that i can get the rest of the data for that element?

<standardData>
<!-- Standard Component Data -->
<identifier>Assembly Main Head</identifier>
<idNumber>1258491231</idNumber>
<attachedTo>Cylinder #1</attachedTo>
<attachedToKind>Cylinder</attachedToKind>
<attachedToidNumber>1258491234</attachedToidNumber>
<material>Stainless Steel</material>
<designThickness units="in">0.2214</designThickness>
</standardData>

inm the above XML, i need all of the data within standardData but only have the idNumber as the filter and standrdData isnt always called standardData


Thanks




Nacho is the derivative of Nigel - True fact! I am self taught in VB.Net. 50% of the time, I am right 100% of the time!

Continue reading...
 

Similar threads

N
Replies
0
Views
106
NachoShaw
N
N
Replies
0
Views
124
NachoShaw
N
N
Replies
0
Views
140
NachoShaw
N
Back
Top