Link to home
Start Free TrialLog in
Avatar of Aaron Cain
Aaron CainFlag for United States of America

asked on

vbscript to read xml file and write to registry

I am looking to get a vbscript to read an the attached XML file

xml version="1.0" encoding="UTF-8"?>
<HPDOM>
  <diagModule>
    <_1>
      <TestResult>
        <_3>6144</_3>
        <_4>The Battery health is the indicator of how well the multiple cells for the battery are charging and discharging. A Good Status indicates the battery is functioning properly.</_4>
        <_5>9GBWTK-5L2617-WPQC2J-C0CX03</_5>
        <_6>DesignCapacity=5600,FullChargeCapacity=5342,RemainingCapacity=5342,MaxError=0,CycleCount=21,Temperature=32,TerminalVoltage=12810,Current=0,DesignVoltage=11100,BatteryManufactureName=HP,Status=224,CellVoltage1=0,CellVoltage2=4267,CellVoltage3=4270,CellVoltage1=4274,BatteryACPower=1,BatterySupportedCount=1,SerialNumber=00584 2011/02/09,Source=1,Table=0,SubTable=0</_6>
      </TestResult>
    </_1>
  </diagModule>
</HPDOM>


 and export the data for the following :

DesignCapacity=5100
FullChargeCapacity=4934
RemainingCapacity=3904
CycleCount=114
Current=2611
DesignVoltage=10800
Status=128
CellVoltage1=4122
CellVoltage2=4110
CellVoltage3=4115
BatteryACPower=1
SerialNumber=07415
 
Into corresponding registry keys
ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial