我想将以下输入转换为特定的输出结构。
场景是用父结构下的一组新节点替换重复的节点和值。你能帮忙吗
输入
<License>
<LicenseType>SLN</LicenseType>
<LicenseNumber>706909</LicenseNumber>
<LicenseStateCode>TX</LicenseStateCode>
<EffectiveDate>2999-12-31</EffectiveDate>
<EffectiveDate>2999-12-32</EffectiveDate>
<ExpiryDate>2014-10-25</ExpiryDate>
<ExpiryDate>2015-02-01</ExpiryDate>
<StatusCode>A</StatusCode>
<StatusCode>A</StatusCode>
</License>
必需的输出
<License>
<LicenseType>SLN</LicenseType>
<LicenseNumber>706909</LicenseNumber>
<LicenseStateCode>TX</LicenseStateCode>
<EffectiveDate>2999-12-31</EffectiveDate>
<ExpiryDate>2014-10-25</ExpiryDate>
<StatusCode>A</StatusCode>
</License>
<License>
<LicenseType>SLN</LicenseType>
<LicenseNumber>706909</LicenseNumber>
<LicenseStateCode>TX</LicenseStateCode>
<EffectiveDate>2999-12-32</EffectiveDate>
<ExpiryDate>2014-10-25</ExpiryDate>
<StatusCode>A</StatusCode>
</License>