PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ is_gml_element()

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

Definition at line 135 of file lwgeom_in_gml.c.

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

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: