Here is one xml file name file1.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes "?>
<ns1:samns ns1:id="1239" xmlns:ns1="http ://blogs.sun.com/teera/ns/samns">
<ns1:firstName> arvind</ns1:firstName>
<ns1:lastName>k rishna</ns1:lastName>
<ns1:address>ch ennai</ns1:address>
</ns1:samns>
Here is the another xml file called file2.xml
<?xml version="1.0" encoding="UTF-8"?>
<customer>
<firstName>sach in</firstName>
<lastName>tendu lkar</lastName>
</customer>
I want to compare these two file1.xml and file2.xml files find out the matching tags in both files.
like <firstName></firstName><last Name></lastName>
get the values from file1.xml and put it in file2.xml tags
sample output:
result3.xml
<?xml version="1.0" encoding="UTF-8"?>
<customer>
<firstName>arav ind</firstName>
<lastName>krish na</lastName>
</customer>
what shout i do for this.. can anyone help me out with this
<?xml version="1.0" encoding="UTF-8" standalone="yes "?>
<ns1:samns ns1:id="1239" xmlns:ns1="http ://blogs.sun.com/teera/ns/samns">
<ns1:firstName> arvind</ns1:firstName>
<ns1:lastName>k rishna</ns1:lastName>
<ns1:address>ch ennai</ns1:address>
</ns1:samns>
Here is the another xml file called file2.xml
<?xml version="1.0" encoding="UTF-8"?>
<customer>
<firstName>sach in</firstName>
<lastName>tendu lkar</lastName>
</customer>
I want to compare these two file1.xml and file2.xml files find out the matching tags in both files.
like <firstName></firstName><last Name></lastName>
get the values from file1.xml and put it in file2.xml tags
sample output:
result3.xml
<?xml version="1.0" encoding="UTF-8"?>
<customer>
<firstName>arav ind</firstName>
<lastName>krish na</lastName>
</customer>
what shout i do for this.. can anyone help me out with this
Comment