Hey all,
First off, sorry for all the posts that I have been doing, but I am under a deadline and need answers badly. I have a xml document (that I will post below) that has been given to me that I need to parse. The document seems to be pretty complicated to me. I am just getting confused as I get deeper in the doc and was wondering if someone could give me a decent description of how I should code this out. I have bolded the parts that confuse me and give my question next to it. Here is the xml document:
<MDADocument>
<defenseDesignDocument>
<location type="absolute"> - does this need to be a new class
<centroidPosition>
<latitude units="degrees">36.1902</latitude> - do each of these need to be classes (what is throwing me off is the
<longitude units="degrees">47.424</longitude> fact that it is the "latitude units" and then the degree amount)
</centroidPosition>
<shape>
<polygon>
<points>
<position>
<latitude units="degrees">36.157</latitude> -how would the mapping file look based on these?
<longitude units="degrees">47.1334</longitude>
<sequenceNumber>1</sequenceNumber> -I'm used to seeing the fields like this line, not the lat/lon fields
</position>
<position>
<latitude units="degrees">35.8809</latitude>
<longitude units="degrees">47.3325</longitude>
<sequenceNumber>2</sequenceNumber>
</position>
<position>
<latitude units="degrees">35.5345</latitude>
<longitude units="degrees">47.7023</longitude>
<sequenceNumber>3</sequenceNumber>
</position>
</points>
</polygon>
</shape>
</location>
</defenseDesignDocument>
</MDADocument>
If this is too vague, then let me know and I will try to elaborate.
Thanks,
Jason

