YAZ  5.34.0
Macros | Functions
xml_match.c File Reference

XML node inspection utilities. More...

#include <yaz/srw.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 27 of file xml_match.c.

Function Documentation

◆ yaz_match_xsd_element()

int yaz_match_xsd_element ( xmlNodePtr  ptr,
const char *  elem 
)

◆ 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 65 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 29 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 120 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 76 of file xml_match.c.

References odr_strdupn(), and yaz_match_xsd_element().

Referenced by yaz_match_xsd_XML_n(), and yaz_srw_record().