posted 13 years ago
I have this block in an xml file, which I'm trying to extract the data values from...
I am using JAXP/DOM and have referenced the "current_conditions" element ok, but I am struggling to reference its child nodes correctly: the node names being returned are, e.g., "temp_f" instead of "temp_f data" and (consequently?) I am unable to obtain the values such as "59".
I have done setNamespaceAware(true) on my DocumentBuilderFactory, but that has made no difference.
How can I extract the data values?!
Thanks in advance,
James