WorldsHardestGame
New Member
I know there are a lot of tutorial using VBScript to read XML, but I really need help to read the following XML specifically using VBScript... I need to know these data through VBScript: 1 how many Floor under Floors 2 the attributes: Floor.FloorIndex and Floor.FloorHeight 3 how many Wall under Floors/Floor/Walls 4 the Wall value5 Building Attributes, such as FloorCountcould anybody give a sample VBScript code, please? many thanks.\[code\]<?xml version="1.0" encoding="utf-8"?><Building xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" BuildingName="B1" FloorCount="5" BasementCount="0" MeasurementUnit="1" BuildingAlias="" xmlns="http://tempuri.org/BuildingFile.xsd"> <Floors> <Floor FloorIndex="5" FloorAlias="" FloorName="B1_F5" FloorHeight="3" Guid="c3dd3172-73ea-4ac1-82df-7f1e300a492e"> <Walls /> </Floor> <Floor FloorIndex="4" FloorAlias="" FloorName="B1_F4" FloorHeight="3" Guid="bf29412a-5110-49f0-8b73-02f17123d3a1"> <Walls /> </Floor> <Floor FloorIndex="3" FloorAlias="" FloorName="B1_F3" FloorHeight="3" Guid="18fadb83-22df-477f-b203-c56fb3704f34"> <Walls /> </Floor> <Floor FloorIndex="2" FloorAlias="" FloorName="B1_F2" FloorHeight="3" Guid="12fca375-7163-4eb1-95ab-103c2e505c67"> <Walls /> </Floor> <Floor FloorIndex="1" FloorAlias="" FloorName="B1_F1" FloorHeight="3" Guid="e654cd5b-3e6b-419b-b520-cbb2ea8a5b03"> <Walls> <Wall>Data 1</Wall> <Wall>Data 2</Wall> </Walls> </Floor> </Floors></Building>\[/code\]