Title: Issue using same field name in xml document

Hey all,
   I have been supplied with an xml document that I HAVE to use.  There is little chance that I will have the authority to tell the person to modify it.  That being said I have hit a wall with the fact that he has nested wrapper elements and inside those are fields with the same name.  Is there a way around the  error that I get with the mapping file.  I get this error: Nested error: org.exolab.castor.mapping.MappingException: The field name appears twice in the descriptor for xml.plan.PlanData

Here is the xml file (at least a portion to explain better):
<MDADocument>
    <defenseDesignDocument>
          <planningContextHeader>
                <world>
                      <worldId />
                      <name />
                </world>
            <OPLAN>
                        <planId>-6048061182588210068</planId>
                <name>OIF</name>
                 </OPLAN>
          </planningContextHeader>
    </defenseDesignDocument>
</MDADocument>

What I have bolded is where the issue lies.  I tried in my mapping file to at least bind to a different name, but that doesn't seem to work.

Any Ideas?
Thanks
Jason



Jason Green
Software Engineer
Northrop Grumman MS
[EMAIL PROTECTED]
(540) 469-2407

Reply via email to