PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ is_xml_element()

static bool is_xml_element ( xmlNodePtr  xn,
const char *  xml_name 
)
inlinestatic

Definition at line 95 of file lwgeom_in_marc21.c.

96 {
97  char *colon_pos, *node_name;
98 
99  /* Not an element node, can't do anything */
100  if (!xn || xn->type != XML_ELEMENT_NODE)
101  return false;
102 
103  /* If there's a colon in the element name, */
104  /* move past it before checking for equality with */
105  /* the element name we are looking for */
106  node_name = (char*)xn->name;
107  colon_pos = strchr(node_name, ':');
108  if (colon_pos)
109  node_name = colon_pos + 1;
110 
111  return strcmp(node_name, xml_name) == 0;
112 }

Referenced by parse_marc21().

Here is the caller graph for this function: