
## detach {#}

Detaches the NodeIterator from the set which it iterated
over, releasing any computational resources and placing the iterator
in the INVALID state. After detach has been invoked,
calls to nextNode or previousNode will
raise the exception INVALID_STATE_ERR.



```python
def detach(self):
    ...
```





### See Also
* module [`aspose.html.dom.traversal`](../../)
* class [`INodeIterator`](/html/python-net/aspose.html.dom.traversal/inodeiterator)
