elements(forLocalName:uri:)
Returns the child element nodes (as NSXMLElement objects) of the receiver that are matched with the specified local name and URI.
Declaration
func elements(forLocalName localName: String, uri URI: String?) -> [XMLElement]Parameters
- localName:
A string specifying a local name of an element.
- URI:
A string specifying a URI associated with an element.
Return Value
An array of NSXMLElement objects or an empty array if no matching children could be found.