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

Function msLibXml2GenerateList

maplibxml2.c:54–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 */
53
54void msLibXml2GenerateList(xmlNodePtr psParent, xmlNsPtr psNs, const char *elname, const char *values, char delim) {
55 char **tokens = NULL;
56 int n = 0;
57 int i = 0;
58 tokens = msStringSplit(values, delim, &n);
59 if (tokens && n > 0) {
60 for (i=0; i<n; i++) {
61 xmlNewChild(psParent, psNs, BAD_CAST elname, BAD_CAST tokens[i]);
62 }
63 msFreeCharArray(tokens, n);
64 }
65}
66
67/**
68 * msLibXml2GetXPath()

Calls 2

msStringSplitFunction · 0.85
msFreeCharArrayFunction · 0.85

Tested by

no test coverage detected