how to read xml in VB6
-
<TestCase> <Sequences> <Sequence> <Request>CMD_Connect</Request> <Responce>POSITIVE</Responce> </Sequence> <Sequence> <Address>400026F8</Address> <Request>CMD_SHORT_UPLOAD</Request> <Responce>POSITIVE</Responce> </Sequence> <Sequence> <Address>400026F8</Address> <Request>CMD_SHORT_UPLOAD</Request> <Responce>POSITIVE</Responce> </Sequence> </Sequences> <Recursions> <Recursion> <Address>400026F8</Address> <Request>CMD_SHORT_UPLOAD</Request> <Responce>POSITIVE</Responce> </Recursion> <Recursion> <Address>400026F8</Address> <Request>CMD_SHORT_UPLOAD</Request> <Responce>POSITIVE</Responce> </Recursion> <Recursion> <Address>400026F8</Address> <Request>CMD_SHORT_UPLOAD</Request> <Responce>POSITIVE</Responce> </Recursion> </Recursions> <Sequences> <Sequence> <Request>DAQ_START_STOP_DAQ_LIST</Request> <Responce>POSITIVE</Responce> </Sequence> <Sequence> <Request>CMD_Disconnect</Request> <Responce>POSITIVE</Responce> </Sequence> <Sequences> </TestCase> I have this type of xml. "Sequences" and "Recursions" are the elements occuring multiple times under "Test Case" node.Now I have to read this xml such that I have the knowledge of "Sequences" and "Recursions" nodes that how many "Sequence" nodes and "Recursions" nodes are there and I have to visit these nodes also. I used the Dim objXMLDOM As New MSXML2.DOMDocument26 Dim objxmlNode As IXMLDOMNode Dim objNodes As IXMLDOMNodeList But it is not clear which method I have to use to achieve the goal. Please guide me to read the xml. Thanks in adv..