Question : parsing XMLDOM

in the following code, How do i refer to a particular objFld within objFlds.  I can do it using a counter...but id like to grab an objFld value by explicitly using the index.

Set objRows = objRoot.getElementsByTagName("row")
For Each objRow in objRows
            strXMLRctr = strXMLRctr + 1
            Set objFlds = objRow.getElementsByTagName("field")
            For Each objFld in objFlds
                  strXMLFctr = strXMLFctr + 1
                  If strXMLFctr = 10 Then
                        response.write "Transaction Type - " & objFld.text & "*<br>"
                  End IF
                  response.write "*strXMLFctr - " & strXMLFctr & " - " & objFld.text & "*<br>"
            Next
Next
Set objCols = Nothing

Answer : parsing XMLDOM

will this work???

objFldsValue = objRow.getElementsByTagName("field").childNodes(10).text;

Random Solutions  
 
programming4us programming4us