YAZ 5.37.0
xml_match.c File Reference

XML node inspection utilities. More...

#include <yaz/srw.h>
#include <yaz/nmem_xml.h>
#include "sru-p.h"

Go to the source code of this file.

Macros

#define CHECK_TYPE   0

Functions

int yaz_match_xsd_element (xmlNodePtr ptr, const char *elem)
int yaz_match_xsd_string_n_nmem (xmlNodePtr ptr, const char *elem, NMEM nmem, char **val, int *len)
int yaz_match_xsd_string_n (xmlNodePtr ptr, const char *elem, ODR o, char **val, int *len)
int yaz_match_xsd_string (xmlNodePtr ptr, const char *elem, ODR o, char **val)
int yaz_match_xsd_XML_n2 (xmlNodePtr ptr, const char *elem, ODR o, char **val, int *len, int fixup_root)
int yaz_match_xsd_XML_n (xmlNodePtr ptr, const char *elem, ODR o, char **val, int *len)
int yaz_match_xsd_integer (xmlNodePtr ptr, const char *elem, ODR o, Odr_int **val)

Detailed Description

XML node inspection utilities.

Definition in file xml_match.c.

Macro Definition Documentation

◆ CHECK_TYPE

#define CHECK_TYPE   0

Definition at line 28 of file xml_match.c.

Function Documentation

◆ yaz_match_xsd_element()

◆ yaz_match_xsd_integer()

int yaz_match_xsd_integer ( xmlNodePtr ptr,
const char * elem,
ODR o,
Odr_int ** val )

◆ yaz_match_xsd_string()

int yaz_match_xsd_string ( xmlNodePtr ptr,
const char * elem,
ODR o,
char ** val )

◆ yaz_match_xsd_string_n()

int yaz_match_xsd_string_n ( xmlNodePtr ptr,
const char * elem,
ODR o,
char ** val,
int * len )

Definition at line 66 of file xml_match.c.

References odr::mem, and yaz_match_xsd_string_n_nmem().

Referenced by yaz_match_xsd_string(), and yaz_srw_record().

◆ yaz_match_xsd_string_n_nmem()

int yaz_match_xsd_string_n_nmem ( xmlNodePtr ptr,
const char * elem,
NMEM nmem,
char ** val,
int * len )

Definition at line 30 of file xml_match.c.

References nmem_strdup(), and yaz_match_xsd_element().

Referenced by match_element_next(), and yaz_match_xsd_string_n().

◆ yaz_match_xsd_XML_n()

int yaz_match_xsd_XML_n ( xmlNodePtr ptr,
const char * elem,
ODR o,
char ** val,
int * len )

Definition at line 118 of file xml_match.c.

References yaz_match_xsd_XML_n2().

Referenced by yaz_srw_codec(), and yaz_srw_record().

◆ yaz_match_xsd_XML_n2()

int yaz_match_xsd_XML_n2 ( xmlNodePtr ptr,
const char * elem,
ODR o,
char ** val,
int * len,
int fixup_root )

Definition at line 77 of file xml_match.c.

References nmem_from_xml_buffer(), odr_getmem, and yaz_match_xsd_element().

Referenced by yaz_match_xsd_XML_n(), and yaz_srw_record().