Method

PurpleXmlNodenew_child

since: 3.0

Declaration [src]

PurpleXmlNode*
purple_xmlnode_new_child (
  PurpleXmlNode* parent,
  const char* name
)

Description [src]

Creates a new PurpleXmlNode child.

Available since: 3.0

Parameters

name

Type: const char*

The name of the child 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 child node.

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