Title: How do I get around a inconsistent collection in an xml document

The subject may not do well to explain, so I hope the xml example will do.
<MDADocument>
    <defenseDesignDocument>
        <defenseDesign>           
        <properties>
                   <assetList>
                           <properties>                      
                                <asset>
                                        <properties>                              
                                                <defendedEntity>
                                                        <featureId>-6048061182588210046</featureId>
                                                        </defendedEntity>
                                                </properties>
                                </asset>
                                <asset>
                                        <properties>                              
                                                <defendedEntity>
                                                <platformId>-6048061182588210036</platformId>
                                                        </defendedEntity>
                                                </properties>
                                </asset>
                        <asset>
                                        <properties>                              
                                                <defendedEntity>
                                                        <featureId>-6048061182588210042</featureId>
                                                        </defendedEntity>
                                                </properties>
                                </asset>
                                <asset>
                                        <properties>                              
                                                <defendedEntity>
                                                <featureId>-6048061182588210045</featureId>
                                                        </defendedEntity>
                                                </properties>
                                </asset>
                </properties>
        </assetList>
</properties>
</defenseDesign>
</defenseDesignDocument>
</MDADocument>

The hierarchy of the asset field makes it appear that it would a collection of assets with the exception of the featureId/platformId .  Is there a way to get a different field name instead of looking for that exact name?  I code for the featureId, so when it gets to the platformId, I get an error.  Please let me know asap,

Thanks,
Jason

Reply via email to