---
title: "setURI:"
framework: foundation
role: article
role_heading: Article
path: foundation/nsxmlnode-seturi
---

# setURI:

Sets the URI of the receiver.

## Overview

Overview The receiver must be an XMLElement or XMLDocument document, or an attribute (that is, anNSXMLNode object of type XMLNode.Kind.attribute). For documents it is the URI of document origin.
