Function

EDataServerxml_find_child

since: 3.38

Declaration [src]

xmlNode*
e_xml_find_child (
  xmlNode* parent,
  const gchar* ns_href,
  const gchar* name
)

Description [src]

Searches the children nodes of the parent for an element named name in namespace ns_href.

Available since: 3.38

This function is not directly available to language bindings.

Parameters

parent

Type: xmlNode

An #xmlNode, parent of which immediate children to search.

The argument can be NULL.
The data is owned by the caller of the function.
ns_href

Type: const gchar*

A namespace href the node should have set, or NULL for none namespace.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
name

Type: const gchar*

An element name to search for.

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

Return value

Type: xmlNode

An #xmlNode of the given name, or NULL, if not found. It also returns NULL, when the parent is NULL.

See: e_xml_find_sibling(), e_xml_find_children_nodes().

The data is owned by the called function.
The return value can be NULL.