M
Michael
hello,
I'm quite new to XML parsing, so please bare with me. I'm learning
about Xerces, and I was wondering how people extract data after the
document being parsed. For example, I have:
<WEATHER>
<CITY NAME="New York">
<TEMP>64</TEMP>
</CITY>
</WEATHER>
and want to create an object for this as Weather {city, temp}.
After creating a DOMparser, then parse via the parse() method, then
should the node be checked if it's of "Weather", create an instance,
and then traverse for "City" and "Temp"? Is this the usual way of
extracting?
Any help would be appreciated.
Thank you very much,
Michael
I'm quite new to XML parsing, so please bare with me. I'm learning
about Xerces, and I was wondering how people extract data after the
document being parsed. For example, I have:
<WEATHER>
<CITY NAME="New York">
<TEMP>64</TEMP>
</CITY>
</WEATHER>
and want to create an object for this as Weather {city, temp}.
After creating a DOMparser, then parse via the parse() method, then
should the node be checked if it's of "Weather", create an instance,
and then traverse for "City" and "Temp"? Is this the usual way of
extracting?
Any help would be appreciated.
Thank you very much,
Michael