【发布时间】:2015-03-17 07:54:43
【问题描述】:
我有一个格式如下的 XML 文件:
<payments/>
<payment>
<payment_type>
</payment_type>
<dataforpay>
</dataforpay>
<allocations/>
<allocation>
<id>
</id>
<notfind>
</notfind>
<amount>
</amount>
</allocation>
</payment>
因为它看起来很高级的格式,我想用 vbscript 把这个格式更新到下面.....请给建议?
<payments>
<payment>
<payment_type>
</payment_type>
<dataforpay>
</dataforpay>
<allocations>
<allocation>
<id>
</id>
<notfind>
</notfind>
<amount>
</amount>
</allocation>
</allocations>
</payment>
</payments>
【问题讨论】:
-
您是否在问,例如将
<payments/><payment/>更改为<payments><payment/> ... </payments>? -
是的,但不是每次都这样。在一个节点中,它的
应该是 ......... .. 但节点的格式已经正确。
标签: xml vbscript xsd xml-parsing