Contents

element(withName:uri:)

Returns an element whose fully qualified name is specified.

Declaration

class func element(withName name: String, uri URI: String) -> Any

Parameters

  • 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