YAZ 5.37.0
nmem_xml.c File Reference

Implements NMEM XML utilities. More...

#include <string.h>
#include <yaz/nmem_xml.h>

Go to the source code of this file.

Functions

char * nmem_text_node_cdata (const xmlNode *ptr_cdata, NMEM nmem)
 copies TEXT Libxml2 node data to NMEM
char * nmem_from_xml_buffer (NMEM nmem, const xmlBufferPtr buf, int *ret_len)
 copies xmlBuffer data to NMEM

Detailed Description

Implements NMEM XML utilities.

Definition in file nmem_xml.c.

Function Documentation

◆ nmem_from_xml_buffer()

char * nmem_from_xml_buffer ( NMEM nmem,
const xmlBufferPtr buf,
int * ret_len )

copies xmlBuffer data to NMEM

Definition at line 36 of file nmem_xml.c.

References nmem_strdupn().

Referenced by yaz_match_xsd_XML_n2(), and yaz_solr_decode_result_docs().

◆ nmem_text_node_cdata()

char * nmem_text_node_cdata ( const xmlNode * ptr_cdata,
NMEM nmem )