|
<alarmlist>
<NT_ALARM>
<property name="notificationId">
<org.jacorb.orb.Any>
<value>2</value>
</org.jacorb.orb.Any>
</property>
</NT_ALARM>
</alarmlist>
修改<value>2</value>
把2修改成5,如何修改。用vbs
Set xmlDoc = CreateObject("Microsoft.XMLDOM") ' 创建XMLDOM对象
xmlDoc.async = False
xmlDoc.load "D:\NT_ALARM.xml"
If xmlDoc.parseError.errorCode <> 0 Then
Set myErr = xmlDoc.parseError
MsgBox("XML Loads Failed. " & myErr.reason)
Else
Set rootNode = xmlDoc.documentElement
rootNode.childNodes(0).childNodes(11).attributes(0).nodeValue 这里如何写?
xmlDoc.save "D:\NT_ALARM.xml"
End If
Set xmlDoc = Nothing |
|