ElementsForName:
Returns the child element nodes (NSXMLElementObjects) of the specified er that have a specified name.
Returns the name specified by the receiver of a child element node (such as an NSXMLElement object ).
-(NSArray *) elementsForName :( NSString *) nameParameters
-
Name
-
A string specifying the name of the child element nodes to find and return. IfNameIs a qualified name, then this method invokeselementsForLocalName:URI:With the URI parameter set to the URI associated with the prefix. Otherwise comparison is based on string associity of the qualified or non-qualified name.
A string refers to the name of the child element node to be searched and returned. If the name is a qualified name, this method calls elementsForLocalName: URI to set the parameter to the URI associated with the prefix. Otherwise, the comparison is based on equal pass or no name strings.Return Value
An arrayNSXMLElementObjects or an empty array if no matching children can be found.
RootElement
Returns the root element of the specified er.
-(NSXMLElement *) rootElementReturn Value
The root element of the specified er.
Availability
- Available in OS X v10.4 and later. See Also
– setRootElement:Related Sample Code