Simple Man
Member
- Joined
- Jul 7, 2010
- Messages
- 13
- Programming Experience
- 5-10
Not sure if correct spot or not...
I have really never worked with XML files before. I've got a file that I need to extract data from...i guess a particular node. I've attached the file.
The data that I need is under meteohub/data --> timeframe="actual"
There are several items under this and I need to some how parse out the unit, cat, sensor, and of course the value.
for example:
<item unit="utc" cat="date" sensor="date0">20110413204001</item>
As you see in this file, there is another node "data" and the timeframe is "alltime"...and another called "day1" etc. I don't need these...only the actual.
How might I go about doing this?
Thanks.
I have really never worked with XML files before. I've got a file that I need to extract data from...i guess a particular node. I've attached the file.
The data that I need is under meteohub/data --> timeframe="actual"
There are several items under this and I need to some how parse out the unit, cat, sensor, and of course the value.
for example:
<item unit="utc" cat="date" sensor="date0">20110413204001</item>
As you see in this file, there is another node "data" and the timeframe is "alltime"...and another called "day1" etc. I don't need these...only the actual.
How might I go about doing this?
Thanks.