Hello everyone.
I have two instance of xml.xmldocument. One is XA another is XB. XA has a
child node XA1. XA1 has many attributes and child nodes. Now I want to copy
XA1 to XB with all of it's attributes and child nodes. In .NET, the type of
XA1 is xml.xmlelement.
If I use clone method. The copy of XA1 is belong to XA. I can not append it
to XB.
If I careate a new instance from XB.CreateElement method. I need to copy
every attribute of XA1 to the new xml.xmlelement instance. The XA1.InnerXML
property just return the child nodes of XA1, and the XA1.OuterXML is
readonly. I can not send it to the new instance.
Who know how can i copy XA1 to XB easily and efficiently. Thanks.
Steven