Function
EDataServerxml_find_child_and_dup_content
since: 3.38
Declaration [src]
xmlChar*
e_xml_find_child_and_dup_content (
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 content. This combines e_xml_find_child() and e_xml_dup_node_content() calls.
Available since: 3.38
This function is not directly available to language bindings.
Parameters
parent-
Type:
xmlNodeAn #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
NULLfor 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 content as #xmlChar string, or NULL, when the node could not be found or the content could not be read
or was not set. Free the non-NULL value with xmlFree(), when no longer needed.
See: e_xml_find_child_and_get_text().
| The caller of the function takes ownership of the data, and is responsible for freeing it. |
The return value can be NULL. |