I'm having a little trouble getting values out of an XML document. The document looks like this:
<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've always had trouble figuring out xpath with Java and I can never find any good tutorials or references for this. If anyone could help me figure this out that would be great.