PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ is_gml_element()

static bool is_gml_element ( xmlNodePtr  xn,
const char *  gml_name 
)
inlinestatic

Definition at line 134 of file lwgeom_in_gml.c.

135 {
136  char *colon_pos;
137  char *node_name;
138 
139  /* Not an element node, can't do anything */
140  if (!xn || xn->type != XML_ELEMENT_NODE)
141  return false;
142 
143  /* If there's a colon in the element name, */
144  /* move past it before checking for equality with */
145  /* the element name we are looking for */
146  node_name = (char*)xn->name;
147  colon_pos = strchr(node_name, ':');
148  if (colon_pos)
149  node_name = colon_pos + 1;
150 
151  return strcmp(node_name, gml_name) == 0;
152 }

Referenced by parse_gml(), parse_gml_coll(), parse_gml_coord(), parse_gml_curve(), parse_gml_data(), parse_gml_mcurve(), parse_gml_mline(), parse_gml_mpoint(), parse_gml_mpoly(), parse_gml_msurface(), parse_gml_patch(), parse_gml_polygon(), parse_gml_psurface(), parse_gml_surface(), parse_gml_tin(), and parse_gml_triangle().

Here is the caller graph for this function: