title: Selecting Unique Element Only Once in XSLT
body: <p>I am trying to write an XSLT (version 1.0) that selects a unique element only once. The situation is that I am calling an ESB and getting back a SOAP XML result. I transform that result to strip out a bunch of unused elements and attributes and end up with something like this:</p>
  
  <pre><code>&lt;feed xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sd="http://ice.exploration.nasa.gov/supplementalData"&gt;
  &lt;id&gt;uuid:6875e533-7751-446b-9ece-57d414447dd9&lt;/id&gt;
  &lt;totalResults&gt;8&lt;/totalResults&gt;
  &lt;startIndex&gt;1&lt;/startIndex&gt;
  &lt;itemsPerPage&gt;50&lt;/itemsPerPage&gt;
  &lt;entry&gt;
    &lt;system&gt;Windchill&lt;/system&gt;
    &lt;type&gt;NASAModelingandSimulationDocument&lt;/type&gt;
    &lt;shortId&gt;297&lt;/shortId&gt;
    &lt;eid&gt;uuid:3a26f040-01b1-4b0d-944d-f2c8bd874307&lt;/eid&gt;
    &lt;displayName&gt;fedsearchtest NASA Modeling  and Simulation Document-PLM-0000001503(--1)&lt;/displayName&gt;
    &lt;url&gt;https://nasa-icedev.nasa.gov/services/feeds/ice/bie/297&lt;/url&gt;
    &lt;name&gt;fedsearchtest NASA Modeling  and Simulation Document&lt;/name&gt;
    &lt;version&gt;--1&lt;/version&gt;
    &lt;description/&gt;
    &lt;creator&gt;Pline, Alex&lt;/creator&gt;
    &lt;creationDateTime&gt;2013-12-20T13:39:53-00:00&lt;/creationDateTime&gt;
    &lt;comment/&gt;
    &lt;identifier&gt;PLM-0000001503&lt;/identifier&gt;
    &lt;modifier&gt;Pline, Alex&lt;/modifier&gt;
    &lt;parentContainer&gt;
       &lt;Description&gt;
          &lt;type&gt;Project&lt;/type&gt;
          &lt;shortId&gt;123&lt;/shortId&gt;
          &lt;eid&gt;uuid:9ca15ace-cfdb-4715-acc1-11f948aea997&lt;/eid&gt;
          &lt;displayName&gt;Portal Development&lt;/displayName&gt;
          &lt;url&gt;https://nasa-icedev.nasa.gov/services/feeds/ice/bie/123&lt;/url&gt;
          &lt;name&gt;Portal Development&lt;/name&gt;
          &lt;version/&gt;
          &lt;description&gt;Project&lt;/description&gt;
          &lt;creator/&gt;
          &lt;creationDateTime/&gt;
          &lt;comment/&gt;
       &lt;/Description&gt;
    &lt;/parentContainer&gt;
    &lt;state&gt;INWORK&lt;/state&gt;
    &lt;status&gt;c/i&lt;/status&gt;
    &lt;updateDateTime&gt;2013-12-20T13:39:53-00:00&lt;/updateDateTime&gt;
    &lt;Document&gt;
       &lt;detailsURL&gt;https://icedev.ndc.nasa.gov/Windchill/app/#ptc1/tcomp/infoPage?oid=VR:wt.doc.WTDocument:418523&lt;/detailsURL&gt;
       &lt;sbuCui&gt;NULL&lt;/sbuCui&gt;
       &lt;exportControlEar&gt;NULL&lt;/exportControlEar&gt;
       &lt;exportControlItar&gt;NULL&lt;/exportControlItar&gt;
       &lt;NASADocument&gt;
          &lt;author/&gt;
          &lt;bookManager/&gt;
          &lt;cageCode/&gt;
          &lt;category/&gt;
          &lt;cmControlLevel&gt;Not Applicable&lt;/cmControlLevel&gt;
          &lt;comments/&gt;
          &lt;controlAuthority/&gt;
          &lt;coverDate&gt;2011-03-18 00:00:00 CDT&lt;/coverDate&gt;
          &lt;dataType&gt;Not a Deliverable&lt;/dataType&gt;
          &lt;drdNumber/&gt;
          &lt;legacyDes/&gt;
          &lt;opr&gt;Not Applicable&lt;/opr&gt;
          &lt;oprOrgCode/&gt;
          &lt;owningCenter/&gt;
          &lt;owningProject/&gt;
          &lt;record&gt;false&lt;/record&gt;
          &lt;recordAfsNumber/&gt;
          &lt;recordCutOffDate/&gt;
          &lt;recordLocation/&gt;
          &lt;recordRetentionInstructions/&gt;
          &lt;recordSchedule/&gt;
          &lt;recordStatus/&gt;
          &lt;recordType/&gt;
          &lt;releaseDate/&gt;
          &lt;remotelyReleased&gt;No&lt;/remotelyReleased&gt;
          &lt;subcategory/&gt;
          &lt;wbsNumber/&gt;
          &lt;NASAModelingandSimulationDocument&gt;
             &lt;credibilityLevel/&gt;
             &lt;criticalityLevel/&gt;
             &lt;developmentStatus&gt;Not Applicable&lt;/developmentStatus&gt;
             &lt;externalUrl/&gt;
             &lt;fileFormat&gt;Other&lt;/fileFormat&gt;
             &lt;fileFormatOther/&gt;
             &lt;issueTrackingUrl/&gt;
             &lt;modelSimToolAbbr/&gt;
             &lt;modelSimToolName/&gt;
             &lt;modelSimToolType/&gt;
             &lt;modelSimToolTypeOther/&gt;
             &lt;modelVersion/&gt;
             &lt;operatingSystems/&gt;
             &lt;otherAnalysisEfforts/&gt;
             &lt;pedigree/&gt;
             &lt;pocEmail/&gt;
             &lt;pocName/&gt;
             &lt;pocOrganization/&gt;
             &lt;pocPhone/&gt;
             &lt;programmingLanguage/&gt;
             &lt;proprietaryInformation/&gt;
             &lt;softwareClassification/&gt;
             &lt;tdsNumber/&gt;
             &lt;vvLevel/&gt;
          &lt;/NASAModelingandSimulationDocument&gt;
       &lt;/NASADocument&gt;
       &lt;files&gt;
          &lt;Bag&gt;
             &lt;Description&gt;
                &lt;type&gt;File&lt;/type&gt;
                &lt;shortId/&gt;
                &lt;eid/&gt;
                &lt;displayName&gt;Excel Document copy.xlsx&lt;/displayName&gt;
                &lt;url/&gt;
                &lt;name&gt;Excel Document copy.xlsx&lt;/name&gt;
                &lt;version&gt;2&lt;/version&gt;
                &lt;description/&gt;
                &lt;creator&gt;Pline, Alex&lt;/creator&gt;
                &lt;creationDateTime&gt;2013-12-20 13:39:53 CST&lt;/creationDateTime&gt;
                &lt;modifier&gt;Pline, Alex&lt;/modifier&gt;
                &lt;parentContainer/&gt;
                &lt;updateDateTime&gt;2013-12-20 14:02:40 CST&lt;/updateDateTime&gt;
                &lt;checksum&gt;0&lt;/checksum&gt;
                &lt;downloadUrl&gt;https://icedev.ndc.nasa.gov/Windchill/servlet/WindchillAuthGW/wt.content.ContentHttp/viewContent/Excel%20Document%20copy.xlsx?u8&amp;amp;HttpOperationItem=wt.content.ApplicationData%3A418541&amp;amp;ContentHolder=wt.doc.WTDocument%3A418524&amp;amp;originalFileName=Excel+Document+copy.xlsx&amp;amp;forceDownload=true&lt;/downloadUrl&gt;
                &lt;fileSize&gt;26,416&lt;/fileSize&gt;
                &lt;format&gt;xlsx&lt;/format&gt;
                &lt;role&gt;PRIMARY&lt;/role&gt;
             &lt;/Description&gt;
          &lt;/Bag&gt;
       &lt;/files&gt;
       &lt;parentFolder&gt;
          &lt;Description&gt;
             &lt;type&gt;Folder&lt;/type&gt;
             &lt;shortId&gt;125&lt;/shortId&gt;
             &lt;eid&gt;uuid:76904fcc-338f-4f3e-a1c6-46c7de7d0a5a&lt;/eid&gt;
             &lt;displayName&gt;Federated Search Test&lt;/displayName&gt;
             &lt;url&gt;https://nasa-icedev.nasa.gov/services/feeds/ice/bie/125&lt;/url&gt;
             &lt;name&gt;Federated Search Test&lt;/name&gt;
             &lt;version/&gt;
             &lt;description&gt;Folder&lt;/description&gt;
             &lt;creator/&gt;
             &lt;creationDateTime/&gt;
             &lt;comment/&gt;
          &lt;/Description&gt;
       &lt;/parentFolder&gt;
       &lt;references/&gt;
       &lt;referencedBy/&gt;
       &lt;uses/&gt;
       &lt;usedBy/&gt;
    &lt;/Document&gt;
  &lt;/entry&gt;
  &lt;entry&gt;
    &lt;system&gt;Liferay&lt;/system&gt;
    &lt;type&gt;Part&lt;/type&gt;
    &lt;shortId&gt;3105&lt;/shortId&gt;
    &lt;eid&gt;uuid:9b080a96-5425-43fd-a3cb-3bca2cd073b6&lt;/eid&gt;
    &lt;displayName&gt;fedsearchtest Part-0000000121(A-1)&lt;/displayName&gt;
    &lt;url&gt;https://nasa-icedev.nasa.gov/services/feeds/ice/bie/3105&lt;/url&gt;
    &lt;name&gt;fedsearchtest Part&lt;/name&gt;
    &lt;version&gt;A-1&lt;/version&gt;
    &lt;description/&gt;
    &lt;creator&gt;Pline, Alex&lt;/creator&gt;
    &lt;creationDateTime&gt;2013-12-13T13:14:57-00:00&lt;/creationDateTime&gt;
    &lt;comment/&gt;
    &lt;identifier&gt;0000000121&lt;/identifier&gt;
    &lt;modifier&gt;Pline, Alex&lt;/modifier&gt;
    &lt;parentContainer&gt;
       &lt;Description&gt;
          &lt;type&gt;Project&lt;/type&gt;
          &lt;shortId&gt;123&lt;/shortId&gt;
          &lt;eid&gt;uuid:9ca15ace-cfdb-4715-acc1-11f948aea997&lt;/eid&gt;
          &lt;displayName&gt;Portal Development&lt;/displayName&gt;
          &lt;url&gt;https://nasa-icedev.nasa.gov/services/feeds/ice/bie/123&lt;/url&gt;
          &lt;name&gt;Portal Development&lt;/name&gt;
          &lt;version/&gt;
          &lt;description&gt;Project&lt;/description&gt;
          &lt;creator/&gt;
          &lt;creationDateTime/&gt;
          &lt;comment/&gt;
       &lt;/Description&gt;
    &lt;/parentContainer&gt;
    &lt;state&gt;INWORK&lt;/state&gt;
    &lt;status&gt;c/i&lt;/status&gt;
    &lt;updateDateTime&gt;2013-12-13T13:14:57-00:00&lt;/updateDateTime&gt;
    &lt;Part&gt;
       &lt;detailsURL&gt;https://icedev.ndc.nasa.gov/Windchill/app/#ptc1/tcomp/infoPage?oid=VR:wt.part.WTPart:417193&lt;/detailsURL&gt;
       &lt;sbuCui&gt;NULL&lt;/sbuCui&gt;
       &lt;exportControlEar&gt;NULL&lt;/exportControlEar&gt;
       &lt;exportControlItar&gt;NULL&lt;/exportControlItar&gt;
       &lt;alternateIdentifier/&gt;
       &lt;assemblyMode&gt;separable&lt;/assemblyMode&gt;
       &lt;bomType/&gt;
       &lt;classification/&gt;
       &lt;classificationOrganization/&gt;
       &lt;classificationReason/&gt;
       &lt;classifiedBy/&gt;
       &lt;contractNumber/&gt;
       &lt;contributor/&gt;
       &lt;coverage/&gt;
       &lt;date/&gt;
       &lt;dateApplied/&gt;
       &lt;defaultTraceCode&gt;0&lt;/defaultTraceCode&gt;
       &lt;defaultUnit&gt;ea&lt;/defaultUnit&gt;
       &lt;endItem&gt;false&lt;/endItem&gt;
       &lt;findNumber/&gt;
       &lt;jobAuthorizationNumber/&gt;
       &lt;maximumAllowed/&gt;
       &lt;minimumRequired/&gt;
       &lt;ownedBy/&gt;
       &lt;owner/&gt;
       &lt;phantomPart&gt;false&lt;/phantomPart&gt;
       &lt;phase/&gt;
       &lt;publisher/&gt;
       &lt;quantity/&gt;
       &lt;referenceDesignator/&gt;
       &lt;relation/&gt;
       &lt;representation/&gt;
       &lt;rights/&gt;
       &lt;source&gt;make&lt;/source&gt;
       &lt;subject/&gt;
       &lt;supplierId/&gt;
       &lt;unit/&gt;
       &lt;files/&gt;
       &lt;parentFolder&gt;
          &lt;Description&gt;
             &lt;type/&gt;
             &lt;shortId&gt;3029&lt;/shortId&gt;
             &lt;eid&gt;uuid:eb7590ed-53fd-4669-9be9-e190b02d7bb6&lt;/eid&gt;
             &lt;displayName&gt;Federated Search Test&lt;/displayName&gt;
             &lt;url&gt;https://nasa-icedev.nasa.gov/services/feeds/ice/bie/3029&lt;/url&gt;
             &lt;name&gt;Federated Search Test&lt;/name&gt;
             &lt;version/&gt;
             &lt;description&gt;Folder&lt;/description&gt;
             &lt;creator/&gt;
             &lt;creationDateTime/&gt;
             &lt;comment/&gt;
          &lt;/Description&gt;
       &lt;/parentFolder&gt;
       &lt;describes/&gt;
       &lt;describedBy/&gt;
       &lt;referencedBy/&gt;
       &lt;references/&gt;
       &lt;usedBy/&gt;
       &lt;uses/&gt;
    &lt;/Part&gt;
  &lt;/entry&gt;
  &lt;entry&gt;
    &lt;system&gt;Liferay&lt;/system&gt;
    &lt;type&gt;Part&lt;/type&gt;
    &lt;shortId&gt;3107&lt;/shortId&gt;
    &lt;eid&gt;uuid:a828443a-5b8f-4ff7-a72f-39b9aef0f12f&lt;/eid&gt;
    &lt;displayName&gt;fedsearchtest NASA Part-0000000122(1-1)&lt;/displayName&gt;
    &lt;url&gt;https://nasa-icedev.nasa.gov/services/feeds/ice/bie/3107&lt;/url&gt;
    &lt;name&gt;fedsearchtest NASA Part&lt;/name&gt;
    &lt;version&gt;1-1&lt;/version&gt;
    &lt;description/&gt;
    &lt;creator&gt;Pline, Alex&lt;/creator&gt;
    &lt;creationDateTime&gt;2013-12-13T13:15:19-00:00&lt;/creationDateTime&gt;
    &lt;comment/&gt;
    &lt;identifier&gt;0000000122&lt;/identifier&gt;
    &lt;modifier&gt;Pline, Alex&lt;/modifier&gt;
    &lt;parentContainer&gt;
       &lt;Description&gt;
          &lt;type&gt;Project&lt;/type&gt;
          &lt;shortId&gt;123&lt;/shortId&gt;
          &lt;eid&gt;uuid:9ca15ace-cfdb-4715-acc1-11f948aea997&lt;/eid&gt;
          &lt;displayName&gt;Portal Development&lt;/displayName&gt;
          &lt;url&gt;https://nasa-icedev.nasa.gov/services/feeds/ice/bie/123&lt;/url&gt;
          &lt;name&gt;Portal Development&lt;/name&gt;
          &lt;version/&gt;
          &lt;description&gt;Project&lt;/description&gt;
          &lt;creator/&gt;
          &lt;creationDateTime/&gt;
          &lt;comment/&gt;
       &lt;/Description&gt;
    &lt;/parentContainer&gt;
    &lt;state&gt;INWORK&lt;/state&gt;
    &lt;status&gt;c/i&lt;/status&gt;
    &lt;updateDateTime&gt;2013-12-13T13:15:19-00:00&lt;/updateDateTime&gt;
    &lt;Part&gt;
       &lt;detailsURL&gt;https://icedev.ndc.nasa.gov/Windchill/app/#ptc1/tcomp/infoPage?oid=VR:wt.part.WTPart:417404&lt;/detailsURL&gt;
       &lt;sbuCui&gt;NULL&lt;/sbuCui&gt;
       &lt;exportControlEar&gt;NULL&lt;/exportControlEar&gt;
       &lt;exportControlItar&gt;NULL&lt;/exportControlItar&gt;
       &lt;alternateIdentifier/&gt;
       &lt;assemblyMode&gt;separable&lt;/assemblyMode&gt;
       &lt;bomType/&gt;
       &lt;classification/&gt;
       &lt;classificationOrganization/&gt;
       &lt;classificationReason/&gt;
       &lt;classifiedBy/&gt;
       &lt;contractNumber/&gt;
       &lt;contributor/&gt;
       &lt;coverage/&gt;
       &lt;date/&gt;
       &lt;dateApplied/&gt;
       &lt;defaultTraceCode&gt;0&lt;/defaultTraceCode&gt;
       &lt;defaultUnit&gt;ea&lt;/defaultUnit&gt;
       &lt;endItem&gt;false&lt;/endItem&gt;
       &lt;findNumber/&gt;
       &lt;jobAuthorizationNumber/&gt;
       &lt;maximumAllowed/&gt;
       &lt;minimumRequired/&gt;
       &lt;ownedBy/&gt;
       &lt;owner/&gt;
       &lt;phantomPart&gt;false&lt;/phantomPart&gt;
       &lt;phase/&gt;
       &lt;publisher/&gt;
       &lt;quantity/&gt;
       &lt;referenceDesignator/&gt;
       &lt;relation/&gt;
       &lt;representation/&gt;
       &lt;rights/&gt;
       &lt;source&gt;make&lt;/source&gt;
       &lt;subject/&gt;
       &lt;supplierId/&gt;
       &lt;unit/&gt;
       &lt;files/&gt;
       &lt;parentFolder&gt;
          &lt;Description&gt;
             &lt;type/&gt;
             &lt;shortId&gt;3029&lt;/shortId&gt;
             &lt;eid&gt;uuid:eb7590ed-53fd-4669-9be9-e190b02d7bb6&lt;/eid&gt;
             &lt;displayName&gt;Federated Search Test&lt;/displayName&gt;
             &lt;url&gt;https://nasa-icedev.nasa.gov/services/feeds/ice/bie/3029&lt;/url&gt;
             &lt;name&gt;Federated Search Test&lt;/name&gt;
             &lt;version/&gt;
             &lt;description&gt;Folder&lt;/description&gt;
             &lt;creator/&gt;
             &lt;creationDateTime/&gt;
             &lt;comment/&gt;
          &lt;/Description&gt;
       &lt;/parentFolder&gt;
       &lt;describes/&gt;
       &lt;describedBy/&gt;
       &lt;referencedBy/&gt;
       &lt;references/&gt;
       &lt;usedBy/&gt;
       &lt;uses/&gt;
    &lt;/Part&gt;
  &lt;/entry&gt;
  &lt;entry&gt;
    &lt;system&gt;Liferay&lt;/system&gt;
    &lt;type&gt;Part&lt;/type&gt;
    &lt;shortId&gt;3109&lt;/shortId&gt;
    &lt;eid&gt;uuid:9e47aa11-4328-4712-89dd-6277c789746d&lt;/eid&gt;
    &lt;displayName&gt;fedsearchtest End Item-0000000123(A-1)&lt;/displayName&gt;
    &lt;url&gt;https://nasa-icedev.nasa.gov/services/feeds/ice/bie/3109&lt;/url&gt;
    &lt;name&gt;fedsearchtest End Item&lt;/name&gt;
    &lt;version&gt;A-1&lt;/version&gt;
    &lt;description/&gt;
    &lt;creator&gt;Pline, Alex&lt;/creator&gt;
    &lt;creationDateTime&gt;2013-12-13T13:15:52-00:00&lt;/creationDateTime&gt;
    &lt;comment/&gt;
    &lt;identifier&gt;0000000123&lt;/identifier&gt;
    &lt;modifier&gt;Pline, Alex&lt;/modifier&gt;
    &lt;parentContainer&gt;
       &lt;Description&gt;
          &lt;type&gt;Project&lt;/type&gt;
          &lt;shortId&gt;123&lt;/shortId&gt;
          &lt;eid&gt;uuid:9ca15ace-cfdb-4715-acc1-11f948aea997&lt;/eid&gt;
          &lt;displayName&gt;Portal Development&lt;/displayName&gt;
          &lt;url&gt;https://nasa-icedev.nasa.gov/services/feeds/ice/bie/123&lt;/url&gt;
          &lt;name&gt;Portal Development&lt;/name&gt;
          &lt;version/&gt;
          &lt;description&gt;Project&lt;/description&gt;
          &lt;creator/&gt;
          &lt;creationDateTime/&gt;
          &lt;comment/&gt;
       &lt;/Description&gt;
    &lt;/parentContainer&gt;
    &lt;state&gt;INWORK&lt;/state&gt;
    &lt;status&gt;c/i&lt;/status&gt;
    &lt;updateDateTime&gt;2013-12-13T13:15:52-00:00&lt;/updateDateTime&gt;
    &lt;Part&gt;
       &lt;detailsURL&gt;https://icedev.ndc.nasa.gov/Windchill/app/#ptc1/tcomp/infoPage?oid=VR:wt.part.WTPart:417427&lt;/detailsURL&gt;
       &lt;sbuCui&gt;NULL&lt;/sbuCui&gt;
       &lt;exportControlEar&gt;NULL&lt;/exportControlEar&gt;
       &lt;exportControlItar&gt;NULL&lt;/exportControlItar&gt;
       &lt;alternateIdentifier/&gt;
       &lt;assemblyMode&gt;separable&lt;/assemblyMode&gt;
       &lt;bomType/&gt;
       &lt;classification/&gt;
       &lt;classificationOrganization/&gt;
       &lt;classificationReason/&gt;
       &lt;classifiedBy/&gt;
       &lt;contractNumber/&gt;
       &lt;contributor/&gt;
       &lt;coverage/&gt;
       &lt;date/&gt;
       &lt;dateApplied/&gt;
       &lt;defaultTraceCode&gt;S&lt;/defaultTraceCode&gt;
       &lt;defaultUnit&gt;ea&lt;/defaultUnit&gt;
       &lt;endItem&gt;true&lt;/endItem&gt;
       &lt;findNumber/&gt;
       &lt;jobAuthorizationNumber/&gt;
       &lt;maximumAllowed/&gt;
       &lt;minimumRequired/&gt;
       &lt;ownedBy/&gt;
       &lt;owner/&gt;
       &lt;phantomPart&gt;false&lt;/phantomPart&gt;
       &lt;phase/&gt;
       &lt;publisher/&gt;
       &lt;quantity/&gt;
       &lt;referenceDesignator/&gt;
       &lt;relation/&gt;
       &lt;representation/&gt;
       &lt;rights/&gt;
       &lt;source&gt;make&lt;/source&gt;
       &lt;subject/&gt;
       &lt;supplierId/&gt;
       &lt;unit/&gt;
       &lt;files/&gt;
       &lt;parentFolder&gt;
          &lt;Description&gt;
             &lt;type/&gt;
             &lt;shortId&gt;3029&lt;/shortId&gt;
             &lt;eid&gt;uuid:eb7590ed-53fd-4669-9be9-e190b02d7bb6&lt;/eid&gt;
             &lt;displayName&gt;Federated Search Test&lt;/displayName&gt;
             &lt;url&gt;https://nasa-icedev.nasa.gov/services/feeds/ice/bie/3029&lt;/url&gt;
             &lt;name&gt;Federated Search Test&lt;/name&gt;
             &lt;version/&gt;
             &lt;description&gt;Folder&lt;/description&gt;
             &lt;creator/&gt;
             &lt;creationDateTime/&gt;
             &lt;comment/&gt;
          &lt;/Description&gt;
       &lt;/parentFolder&gt;
       &lt;describes/&gt;
       &lt;describedBy/&gt;
       &lt;referencedBy/&gt;
       &lt;references/&gt;
       &lt;usedBy/&gt;
       &lt;uses/&gt;
    &lt;/Part&gt;
  &lt;/entry&gt;
  &lt;/feed&gt;
  </code></pre>
  
  <p>Note that other entry elements can have other child elements, depending on their type.</p>
  
  <p>What I would like for the XSLT to do is create a single entry with all possible elements under it that exist in the entry elements in the source document. So, in the case of the above XML, the output entry would look something like this:</p>
  
  <pre><code>&lt;entry&gt;
    &lt;system&gt;Windchill&lt;/system&gt;
    &lt;type&gt;Document&lt;/type&gt;
    &lt;shortId&gt;298&lt;/shortId&gt;
    &lt;parentContainer&gt;
      ..
    &lt;/parentContainer&gt;
    &lt;Document&gt;
      &lt;NASADocument&gt;
        ..
        &lt;NASAModelingandSimulationDocument&gt;
          ..
        &lt;/NASAModelingandSimulationDocument&gt;
      &lt;/NASADocument&gt;
      &lt;files&gt;
        ..
      &lt;/files&gt;
      &lt;parentFolder&gt;
        ..
      &lt;/parentFolder&gt;
    &lt;/Document&gt;
    &lt;Part&gt;
      ..
    &lt;/Part&gt;
  &lt;/entry&gt;
  </code></pre>
  
  <p>Essentially, I am trying to create a single entry record that has all of the potential fields that an entry record can have. The values of those fields do not really matter, as I am building this result to populate a UI element from which the user can choose the fields they would like to display.</p>
  
  <p>I am sure there is some way to approach this using keys, but I cannot figure it out for the life of me. Thanks in advance for the help.</p>