【发布时间】:2016-11-19 18:29:24
【问题描述】:
我将使用 vbs 将链接更改为小写。 xml 文件具有不同的结构。
在每个文件中,我想将属性 src 的值设为小写。 谁能告诉我如何使用 vbs 更改 src 的属性值?
我的问题是如何读取xml文件,找到值并写回xml文件。
这个例子展示了我想要做什么。
源示例 XML
<body>
<title>example</title>
<p>this is <xref src="TEST.xml#548L521">test</xref> file</p>
<table>
<tr>
<td><p>this is <xref src="StAckOverflow.xml">test</xref> file</p></td>
<td><p>this is test file</p></td>
</tr>
</table>
</body>
结果示例 XML
<body>
<title>example</title>
<p>this is <xref src="test.xml#548l21">test</xref> file</p>
<table>
<tr>
<td><p>this is <xref src="stackoverflow.xml">test</xref> file</p></td>
<td><p>this is test file</p></td>
</tr>
</table>
</body>
【问题讨论】:
标签: vbscript