Parsing attributes in VBScript

wxdqz

New Member
Hi everybody,I am brand new to XML and have a problem traversing attributes of the Node,I抳e got it working in VB, but on ASP page it does not work, why?That is what I do in VB:Private Function parseAttributes(ByRef oNode As MSXML2.IXMLDOMNode)Dim oAttr As MSXML2.IXMLDOMAttributeIf oNode.Attributes.length > 0 ThenFor Each oAttr In oNode.AttributesDebug.Print oAttr.Name & ??& oAttr.ValueNext oAttrEnd IfEnd FunctionBut on ASP page using VBScript it gives me an error on the lineIf oNode.Attributes.length > 0 Then saying that oNode.Attributes is nota valid object or something like that.Please give me an idea how to loop through all attributes for given nodeon asp page using VBScript.Thanks in advance.Igor
 
Back
Top