This is my last post for a long time, I promise. :)
Okay, so here's the deal: I have an xml document that I am trying to unmarshal. The portion I am concerned with is posted here:
<MDADocument>
<defenseDesignDocument>
<defenseDesign>
<properties>
<assetList>
<properties>
<asset>
<properties>
<location type="absolute">
<shape>
<point>
<position>
<latitude units="degrees">36.2718</latitude>
<longitude units="degrees">44.6302</longitude>
</position>
</point>
</shape>
</location>
</properties>
</asset>
</properties>
</assetList>
</properties>
</Design>
</DesignDocument>
</MDADocument>
The mapping portion I have is this:
<mapping>
<class name="Latitude">
<field name="units" type="string" >
<bind-xml name="units" node="attribute"/>
</field>
<field name="latitude" type="string" >
<bind-xml name="latitude" node="element"
</field>
</class>
<class name="Asset">
<field name="latitude" type="Latitude">
<bind-xml name="units"
location="properties/location/shape/point/position"/>
</field>
</class>
<class name="PlanData">
<map-to xml="MDADocument"/>
<field name="assets" type="Asset" collection="vector">
<bind-xml name="asset"
location="DesignDocument/Design/properties/assetList/properties"/>
</field>
</class>
</mapping>
I'm getting the error: unable to find FieldDescriptor for 'latitude' in ClassDescriptor of position{file: [not available]; line: 22; column: 75}
Based on the hierarchy and the mapping file, can you all figure out what is giong on? I've been looking at it for the better part of 2 hours….
By the way, this is my last hurdle and I will done with parsing for quite a while, so I'm pleading for some quick help
Thanks,
Jason

