Hallo,
Ik wil graag door middel van vbscript een stuk XML uitlezen.
Dit is de XML:
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<RetrievePropertiesResponse xmlns="urn:vim25">
<returnval>
<obj type="VirtualMachine">1</obj>
<propSet>
<name>config.hardware.memoryMB</name>
<val xsi:type="xsd:int">4096</val>
</propSet>
<propSet>
<name>config.hardware.numCPU</name>
<val xsi:type="xsd:int">2</val>
</propSet>
<propSet>
<name>guest.guestState</name>
<val xsi:type="xsd:string">running</val>
</propSet>
<propSet>
<name>guest.toolsRunningStatus</name>
<val xsi:type="xsd:string">guestToolsRunning</val>
</propSet>
<propSet>
<name>name</name>
<val xsi:type="xsd:string">VMMachine</val>
</propSet>
<propSet>
<name>runtime.powerState</name>
<val xsi:type="VirtualMachinePowerState">poweredOn</val>
</propSet>
</returnval>
</RetrievePropertiesResponse>
</soapenv:Body>
</soapenv:Envelope>
Hier van wil ik graag het getal 4096 uit kunne lezen (aantal memory).
Hoe krijg ik dit voor elkaar?
Gr Lars
Ik wil graag door middel van vbscript een stuk XML uitlezen.
Dit is de XML:
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<RetrievePropertiesResponse xmlns="urn:vim25">
<returnval>
<obj type="VirtualMachine">1</obj>
<propSet>
<name>config.hardware.memoryMB</name>
<val xsi:type="xsd:int">4096</val>
</propSet>
<propSet>
<name>config.hardware.numCPU</name>
<val xsi:type="xsd:int">2</val>
</propSet>
<propSet>
<name>guest.guestState</name>
<val xsi:type="xsd:string">running</val>
</propSet>
<propSet>
<name>guest.toolsRunningStatus</name>
<val xsi:type="xsd:string">guestToolsRunning</val>
</propSet>
<propSet>
<name>name</name>
<val xsi:type="xsd:string">VMMachine</val>
</propSet>
<propSet>
<name>runtime.powerState</name>
<val xsi:type="VirtualMachinePowerState">poweredOn</val>
</propSet>
</returnval>
</RetrievePropertiesResponse>
</soapenv:Body>
</soapenv:Envelope>
Hier van wil ik graag het getal 4096 uit kunne lezen (aantal memory).
Hoe krijg ik dit voor elkaar?
Gr Lars