I'm having trouble getting values from an XML document. The document is as follows:
<marketstat>
<type id="35">
<sell>
<median>6.00</median>
</sell>
</type>
<type id="34">
<sell>
<median>2.77</median>
</sell>
</type>
</marketstat>
I need to get the median, where type = x.
I always had to deal with xpath with Java, and I could never find good tutorials or links for this. If anyone could help me figure this out, that would be great.
source
share