| 980 | } |
| 981 | |
| 982 | static 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 | |
| 1003 | gmlGroupListObj *msGMLGetGroups(layerObj *layer, const char *metadata_namespaces) |
| 1004 | { |
no test coverage detected