Please refer to the following node
<GKENTD.ACDSEGMENT accounted=”DR” index=”1″>2000</GKENTD.ACDSEGMENT>
I am stuck on how to query the inner text of ’2000′ into a variable, by filtering on the two attributes. There are more of these I have to query (index=2,index=3,etc.)
This is what I have been playing with, I know its wrong, but can / should I even be using Select-XML in this case?
$GLSegment1 = Select-XML -XML $PY -XPATH “//EXTCHARGEDISTRIBUTION//GKENTD.ACDSEGMENT[accounted='DR'][index='1']”
Any help would be most appreciated, this is the only thing I cannot get past for this one script I am doing…
Thank you