怎样将vc6 xml :从一个文件拷贝一些数据到另一个文件
怎样将文件Afile中的LDevice 拷贝到Bfile的所有的LDevice 的后面。
例如:
Afile.xml
<?xml version="1.0" encoding="UTF-8"?>
<root>
<Server>
<Authentication/>
<LDevice desc="LD0 LD" inst="LD00">...</LDevice>
<LDevice desc="LD0 LD" inst="LD01">...</LDevice>
...
</Server>
</root>Bfile.xml<?xml version="1.0" encoding="UTF-8"?>
<root>
<Server>
<Authentication/>
<LDevice desc="LD0 LD" inst="LD02">...</LDevice>
<LDevice desc="LD0 LD" inst="LD03">...</LDevice>
...
</Server>
</root>拷贝后的文件AAddBfile.xml
<?xml version="1.0" encoding="UTF-8"?>
<root>
<Server>
<Authentication/>
<LDevice desc="LD0 LD" inst="LD00">...</LDevice>
<LDevice desc="LD0 LD" inst="LD01">...</LDevice>
...
<LDevice desc="LD0 LD" inst="LD02">...</LDevice>
<LDevice desc="LD0 LD" inst="LD03">...</LDevice>
...
</Server>
</root>