Instance Method

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.

Declaration

- (void)setStringValue:(NSString *)string resolvingEntities:(BOOL)resolve;

Parameters

string

A string to assign as the value of the receiver.

resolve

YES to resolve character references, predefined entities, and user-defined entities as declared in the associated DTD; NO otherwise. Namespace and processing-instruction nodes have their entities resolved even if resolve is NO.

Discussion

User-defined entities not declared in the DTD remain in their unresolved form. This method can only be invoked on NSXMLNode objects that may have content, specifically elements, attributes, namespaces, processing instructions, text, and DTD-declaration nodes. Setting the string value of a node object removes all existing children, including processing instructions and comments. Setting the string value of an element -node object creates a text node as the sole child.

See Also

Managing XML Node Objects

index

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

kind

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

level

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

name

Returns the name of the receiver.

objectValue

Returns the object value of the receiver.

stringValue

Returns the content of the receiver as a string value.

- setURI:

Sets the URI of the receiver.

URI

Returns the URI associated with the receiver.