怎样往xml文件中指定的位置写一行?
比如有如下xml文件
<?xml version="1.0" encoding="GBK"?>
<config>
<Properties>
</Properties>
<Selects>
<select id="flowList">
<option value="" text="请选择..." />
<option value="newflow.xml" text="新流程" />
</select>
</Selects>
</config>
我想在</select>前添加一行
<option value="newflow1.xml" text="新流程1" />
我用 FileSystemObject 访问文件
先用OpenTextFile方法打开该文件,然后再用WriteLine写,不知道怎么实现了
谢谢