MCPcopy Index your code
hub / github.com/MapServer/MapServer / msGMLWriteConstant

Function msGMLWriteConstant

mapgml.c:982–1001  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

980}
981
982static void msGMLWriteConstant(FILE *stream, gmlConstantObj *constant, const char *namespace, const char *tab)
983{
984 int add_namespace = MS_TRUE;
985
986 if(!stream || !constant) return;
987 if(!constant->value) return;
988
989 if(!namespace) add_namespace = MS_FALSE;
990 if(strchr(constant->name, ':') != NULL) add_namespace = MS_FALSE;
991
992 if(add_namespace == MS_TRUE && msIsXMLTagValid(constant->name) == MS_FALSE)
993 msIO_fprintf(stream, "<!-- WARNING: The value '%s' is not valid in a XML tag context. -->\n", constant->name);
994
995 if(add_namespace == MS_TRUE)
996 msIO_fprintf(stream, "%s<%s:%s>%s</%s:%s>\n", tab, namespace, constant->name, constant->value, namespace, constant->name);
997 else
998 msIO_fprintf(stream, "%s<%s>%s</%s>\n", tab, constant->name, constant->value, constant->name);
999
1000 return;
1001}
1002
1003gmlGroupListObj *msGMLGetGroups(layerObj *layer, const char *metadata_namespaces)
1004{

Callers 3

msGMLWriteGroupFunction · 0.85
msGMLWriteQueryFunction · 0.85
msGMLWriteWFSQueryFunction · 0.85

Calls 2

msIsXMLTagValidFunction · 0.85
msIO_fprintfFunction · 0.85

Tested by

no test coverage detected