Contents

element(withName:children:attributes:)

Returns an Xmlelement object with the given tag (name), attributes, and children.

Declaration

class func element(withName name: String, children: [XMLNode]?, attributes: [XMLNode]?) -> Any

Parameters

  • name:

    A string that is the name (tag identifier) of the element.

  • children:

    An array of NSXMLElement objects or NSXMLNode objects of kinds Element, Processinginstruction, Comment, and Text. Specify nil if there are no children to add to this node object.

  • attributes:

    An array of NSXMLNode objects of kind Attribute. Specify nil if there are no attributes to add to this node object.

Return Value

An NSXMLElement object or nil if the object couldn’t be created.

See Also

Creating and Initializing Node Objects