K
Ked
Any help in this matter will be gr8!!
I have 1 XML file:
I am giving the example:
<emails>
<email>
<clients>
<client>
<clientId>12345</clientId>
<extClientId>34567</extClientId>
</client>
</clients>
<emailaddress>[email protected]</emailaddress>
<MailingPreference>Weekly once<MailingPreference>
</email>
<email>
<clients>
<client>
<clientId>35690</clientId>
<extClientId>455454</extClientId>
</client>
</clients>
<emailaddress>[email protected]</emailaddress>
<MailingPreference>Weekly once<MailingPreference>
</email>
<email>
<clients>
<client>
<clientId>544554</clientId>
<extClientId>98725</extClientId>
</client>
</clients>
<emailaddress>[email protected]</emailaddress>
<MailingPreference>Weekly once<MailingPreference>
</email>
</emails>
I would like to merge these 2 XML structures. Do observe that the
clients tag information is different for first 2 XML structures, but
rest is the same. Hence I would like to merge them together. 3rd
structure has completely different info. hence keep it seperate.
Basically I would like to get a XML like:
<emails>
<email>
<clients>
<client>
<clientId>12345</clientId>
<extClientId>34567</extClientId>
</client>
<client>
<clientId>35690</clientId>
<extClientId>455454</extClientId>
</client>
</clients>
<emailaddress>[email protected]</emailaddress>
<MailingPreference>Weekly once<MailingPreference>
</email>
<email>
<clients>
<client>
<clientId>544554</clientId>
<extClientId>98725</extClientId>
</client>
</clients>
<emailaddress>[email protected]</emailaddress>
<MailingPreference>Weekly once<MailingPreference>
</email>
</emails>
Is it possible?..Can anyone suggest a quick solution. Thanks a lot in
advance!!
I have 1 XML file:
I am giving the example:
<emails>
<email>
<clients>
<client>
<clientId>12345</clientId>
<extClientId>34567</extClientId>
</client>
</clients>
<emailaddress>[email protected]</emailaddress>
<MailingPreference>Weekly once<MailingPreference>
</email>
<email>
<clients>
<client>
<clientId>35690</clientId>
<extClientId>455454</extClientId>
</client>
</clients>
<emailaddress>[email protected]</emailaddress>
<MailingPreference>Weekly once<MailingPreference>
</email>
<email>
<clients>
<client>
<clientId>544554</clientId>
<extClientId>98725</extClientId>
</client>
</clients>
<emailaddress>[email protected]</emailaddress>
<MailingPreference>Weekly once<MailingPreference>
</email>
</emails>
I would like to merge these 2 XML structures. Do observe that the
clients tag information is different for first 2 XML structures, but
rest is the same. Hence I would like to merge them together. 3rd
structure has completely different info. hence keep it seperate.
Basically I would like to get a XML like:
<emails>
<email>
<clients>
<client>
<clientId>12345</clientId>
<extClientId>34567</extClientId>
</client>
<client>
<clientId>35690</clientId>
<extClientId>455454</extClientId>
</client>
</clients>
<emailaddress>[email protected]</emailaddress>
<MailingPreference>Weekly once<MailingPreference>
</email>
<email>
<clients>
<client>
<clientId>544554</clientId>
<extClientId>98725</extClientId>
</client>
</clients>
<emailaddress>[email protected]</emailaddress>
<MailingPreference>Weekly once<MailingPreference>
</email>
</emails>
Is it possible?..Can anyone suggest a quick solution. Thanks a lot in
advance!!