## INodeIterator.PreviousNode method

Returns the previous node in the set and moves the position of the NodeIterator backwards in the set.

```csharp
public Node PreviousNode()
```

### Return Value

The previous Node in the set being iterated over, or null if there are no more members in that set.

### Exceptions

| exception | condition |
| --- | --- |
| [DOMException](../../../aspose.html.dom/domexception/) | INVALID_STATE_ERR: Raised if this method is called after the detach method was invoked. |

### See Also

* class [Node](../../../aspose.html.dom/node/)
* interface [INodeIterator](../)
* namespace [Aspose.Html.Dom.Traversal](../../../aspose.html.dom.traversal/)
* assembly [Aspose.HTML](../../../)
