Instance Property


Returns the name of the receiver.


@property(copy) NSString *name;

Return Value

Returns a string specifying the name of the receiver. May return nil if the receiver is not a valid kind of node (see discussion).


This method is applicable only to NSXMLNode objects representing elements, attributes, namespaces, processing instructions, and DTD-declaration nodes. If the receiver is not an object of one of these kinds, this method returns nil. For example, in the following construction:

<title>Chapter One</title>

The returned name for the element is “title”. If the name is associated with a namespace, the qualified name is returned. For example, if you create an element with local name “foo” and URI “” and the namespace “xmlns:baz=‘’” is applied to this node, when you invoke this method on the node you get “baz:foo”.

See Also

Managing XML Node Objects


Returns the index of the receiver identifying its position relative to its sibling nodes.


Returns the kind of node the receiver is as a constant of type NSXMLNodeKind.


Returns the nesting level of the receiver within the tree hierarchy.


Returns the object value of the receiver.


Returns the content of the receiver as a string value.

- setStringValue:resolvingEntities:

Sets the content of the receiver as a string value and, optionally, resolves character references, predefined entities, and user-defined entities as declared in the associated DTD.

- setURI:

Sets the URI of the receiver.


Returns the URI associated with the receiver.