Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - DOM Reference

reset Method (IXMLDOMNamedNodeMap)

Resets the iterator.

[Script]

Script Syntax

oXMLDOMNamedNodeMap.reset();

Example

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);
}
[Visual Basic]

Visual Basic Syntax

oXMLDOMNamedNodeMap.reset

Example

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
[C/C++]

C/C++ Syntax

HRESULT reset(void);

C/C++ Return Values

S_OK
The value returned if successful.

Remarks

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 Language Filter in the upper-left corner of the page.

See Also

Applies to: IXMLDOMNamedNodeMap