EDataServer.xml_find_child_and_get_text
Description: Reference for EDataServer.xml_find_child_and_get_text

### Function

# EDataServerxml_find_child_and_get_text

since: 3.38

#### Declaration [src]

    const xmlChar*
    e_xml_find_child_and_get_text (
      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` and returns its text content.

It combines `e_xml_find_child()` and `e_xml_get_node_text()` calls.

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: `xmlChar`

The found node text as #xmlChar string, or `NULL`, when the node could not be found or the content could not be read or was not set.

See: e_xml_find_child_and_dup_content(), e_xml_find_children_nodes().

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