Now what i want to do is extract all the tags with <B> ffrom this xml(A.xml)& want to append in another xml Say B.xml as a child of root tag say note something like this B.xml (Before OPeration) <?xml ver...........?> <note>