Replaces the child node of the receiver located at a specified position in its array of children with another node.
- macOS 10.4+
An integer identifying a position in the receiver's array of children. If
indexis less than zero or greater than the number of children minus one, an out-of-bounds exception is raised.
XMLNodeobject to replace the one at
index; it must represent a comment, a processing instruction, or the root element.
NSXMLNode object is autoreleased.