Function

PurpleXmlNodenew

unstable since: 3.0

Declaration [src]

PurpleXmlNode*
purple_xmlnode_new (
  const char* name
)

Description [src]

Creates a new PurpleXmlNode.

Available since: 3.0

Parameters

name

Type: const char*

The name of the node.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: PurpleXmlNode

The new node.

The caller of the function takes ownership of the data, and is responsible for freeing it.