Returns an NSXMLNode
object representing an attribute node with a given name and string.
SDK
- macOS 10.4+
Framework
- Foundation
Declaration
Parameters
name
A string that is the name of an attribute.
value
A string that is the value of an attribute.
Return Value
An NSXMLNode
object of kind XMLNode
or nil
if the object couldn't be created.
Discussion
For example, in the attribute “id=`12345’”, “id” is the attribute name and “12345” is the attribute value.