PostGIS
3.7.0dev-r@@SVN_REVISION@@
◆
is_xml_element()
static bool is_xml_element
(
xmlNodePtr
xn
,
const char *
xml_name
)
inline
static
Definition at line
95
of file
lwgeom_in_marc21.c
.
96
{
97
const
char
*colon_pos;
98
const
char
*node_name;
99
100
/* Not an element node, can't do anything */
101
if
(!xn || xn->type != XML_ELEMENT_NODE)
102
return
false
;
103
104
/* If there's a colon in the element name, */
105
/* move past it before checking for equality with */
106
/* the element name we are looking for */
107
node_name = (
const
char
*)xn->name;
108
colon_pos = strchr(node_name,
':'
);
109
if
(colon_pos)
110
node_name = colon_pos + 1;
111
112
return
strcmp(node_name, xml_name) == 0;
113
}
Referenced by
parse_marc21()
.
Here is the caller graph for this function:
postgis
lwgeom_in_marc21.c
Generated by
1.9.1