setURI:

Sets the URI identifying the source of this document.

Declaration

- (void)setURI:(NSString *)URI

Parameters

URI

A string object representing a URI source, or nil to remove the current URI.

Overview

This attribute is automatically set when the receiver is initialized using initWithContentsOfURL:options:error:.

See Also

Managing Document Attributes

characterEncoding

Sets the character encoding of the receiver to encoding,

documentContentKind

Sets the kind of output content for the receiver.

DTD

Returns an NSXMLDTD object representing the internal DTD associated with the receiver.

- setDTD:

Sets the internal DTD to be associated with the receiver.

- isStandalone

Returns whether the receiver represents a standalone XML document—that is, one without an external DTD.

standalone

Sets a Boolean value that specifies whether the receiver represents a standalone XML document.

MIMEType

Returns the MIME type for the receiver.

- setMIMEType:

Sets the MIME type of the receiver.

- URI

Returns the URI identifying the source of this document.

version

Sets the version of the receiver’s XML.