elements(forName:)
Returns the child element nodes (as NSXMLElement objects) of the receiver that have a specified name.
Declaration
func elements(forName name: String) -> [XMLElement]Parameters
- name:
A string specifying the name of the child element nodes to find and return. If
nameis a qualified name, then this method invokes Elements(forlocalname:uri:) with the URI parameter set to the URI associated with the prefix. Otherwise comparison is based on string equality of the qualified or non-qualified name.
Return Value
An array of of NSXMLElement objects or an empty array if no matching children can be found.