PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ is_gml_element()

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

Definition at line 127 of file lwgeom_in_gml.c.

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

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: