element(withName:uri:)
Returns an element whose fully qualified name is specified.
Declaration
class func element(withName name: String, uri URI: String) -> AnyParameters
- name:
A string that is the name (or tag identifier) of an element.
- URI:
A URI (Universal Resource Identifier) that qualifies
name.
Return Value
An XMLElement object or nil if the object cannot be created.
Discussion
The equivalent XML markup is <URI:``name``>``</URI:``name``>.
See Also
Creating and Initializing Node Objects
init(kind:)init(kind:options:)document()document(withRootElement:)element(withName:)element(withName:children:attributes:)element(withName:stringValue:)attribute(withName:stringValue:)attribute(withName:uri:stringValue:)text(withStringValue:)comment(withStringValue:)namespace(withName:stringValue:)dtdNode(withXMLString:)predefinedNamespace(forPrefix:)processingInstruction(withName:stringValue:)