Resets the iterator.
oXMLDOMNamedNodeMap.reset();
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.5.0"); var nodeBook, nodeAttribute, s; xmlDoc.setProperty("SelectionLanguage", "XPath"); xmlDoc.async = false; xmlDoc.load("books.xml"); if (xmlDoc.parseError.errorCode <> 0) { var myErr = xmlDoc.parseError; alert("You have error " + myErr.reason); } else { nodeBook = xmlDoc.selectSingleNode("//book"); nodeBook.attributes.reset(); nodeAttribute = nodeBook.attributes.nextNode(); alert(nodeAttribute.text); }
oXMLDOMNamedNodeMap.reset
Dim xmlDoc As New Msxml2.DOMDocument50 Dim nodeBook As IXMLDOMElement Dim nodeAttribute As IXMLDOMAttribute Dim s As String xmlDoc.setProperty "SelectionLanguage", "XPath" xmlDoc.async = False xmlDoc.Load "books.xml" If (xmlDoc.parseError.errorCode <> 0) Then Dim myErr Set myErr = xmlDoc.parseError MsgBox("You have error " & myErr.reason) Else Set nodeBook = xmlDoc.selectSingleNode("//book") nodeBook.Attributes.Reset Set nodeAttribute = nodeBook.Attributes.nextNode() MsgBox nodeAttribute.Text End If
HRESULT reset(void);
This member is an extension of the Worldwide Web Consortium (W3C) Document Object Model (DOM).
To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button in the upper-left corner of the page.
Applies to: IXMLDOMNamedNodeMap