怎样将一段生成的完整xml字符串插入到另一xml字符串文件中的某个节点中去??

怎样将一段生成的完整xml字符串插入到另一xml字符串文件中的某个节点中去其中这两个xml字符串都是通过类转化而来!!

a.xml

        <!--a.xml-->
        <dmp>
            <datasets>
                <setcode>C9901.002</setcode>
                <settype/>
                <setdetails>
                </setdetails>
            </datasets>
        </dmp>

b.xml

        <!--b.xml-->
        <!--数据主键-->
        <serialnum_id/>
        <!--任务号-->
        <task_id/>
        <!--分组号-->
        <batch_num/>
        <!--人员唯一标识-->
        <pid/>
        <!--业务流水号-->
        <business_id/>
        <!--基本活动流水号-->
        <basic_active_id/>
        <!--业务数据产生时间-->
        <datagenerate_date/>
        <!--系统编码-->
        <domain_code/>
        <!--组织机构名称-->
        <organization_name/>
        <!--组织机构代码-->
        <organization_code/>
        <!--新建时间-->
        <create_date/>
        <!--更新时间-->
        <update_date/>
        <!--归档日期时间-->
        <archive_date/>
        <!--记录标识-->
        <record_iden/>
        <!--挂号类别代码-->
        <AP09_00_004_00>11</AP09_00_004_00>
        <!--挂号方式代码-->
        <AP09_00_072_01>2</AP09_00_072_01>

怎样将b.xml插入到a.xml文件中的中,求大神飘过

https://zhidao.baidu.com/question/423917840739561572.html