Currently developing monitoring program for Servers, now I have a vb script which runs periodically, and exports its findings to an XML file, I'm struggling to figure out a way to parse the XML file. The XML file is Laid out as follows.
I'm unsure how to parse this.Code:xml version="1.0" encoding="UTF-8"?> <Site> <SiteID>SID0001</SiteID> <SiteName>SITENAME</SiteName> <CheckDate>13/01/2009</CheckDate> <Server> <ServerName>SERVERNAME</ServerName> <SerialNumber>7M0W24J</SerialNumber> <LastBootTime>19/12/2008 12:42:31</LastBootTime> <Drives> <Drive> <DriveLetter>C:</DriveLetter> <DriveCapacity>25603MB</DriveCapacity> <DriveRemaining>10.97%</DriveRemaining> </Drive> <Drive> <DriveLetter>D:</DriveLetter> <DriveCapacity>212663MB</DriveCapacity> <DriveRemaining>84.19%</DriveRemaining> </Drive> </Drives> <OperatingSystem> <OSName>Microsoft(R) Windows(R) Server 2003 for Small Business Server</OSName> <ServicePack>2</ServicePack> </OperatingSystem> <Antivirus> <Provider>Symantec End Point</Provider> <VirusDefs>20090112.041</VirusDefs> </Antivirus> <UPS> </UPS> </Server> <Exchange> <ExchangeServer>EXCHSERVER</ExchangeServer> <MailBoxes> <MailBoxDetails> <DisplayName>Name1</DisplayName> <MailBoxSize>1659690MB</MailBoxSize> </MailBoxDetails> <MailBoxDetails> <DisplayName>Name2</DisplayName> <MailBoxSize>1105938MB</MailBoxSize> </MailBoxDetails> </MailBoxes> </Exchange> </Site>
Help Appreciated
Many Thanks




Reply With Quote