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

Function msGetMapContextXMLStringValue

mapcontext.c:168–191  ·  view source on GitHub ↗

**msGetMapContextXMLStringValue() ** **Get the xml value and put it in the string field ** */

Source from the content-addressed store, hash-verified

166**
167*/
168int msGetMapContextXMLStringValue( CPLXMLNode *psRoot, char *pszXMLPath,
169 char **pszField)
170{
171 char *pszValue;
172
173 pszValue = (char*)CPLGetXMLValue( psRoot, pszXMLPath, NULL);
174 if(pszValue != NULL)
175 {
176 if( pszField != NULL )
177 {
178 *pszField = msStrdup(pszValue);
179 }
180 else
181 {
182 return MS_FAILURE;
183 }
184 }
185 else
186 {
187 return MS_FAILURE;
188 }
189
190 return MS_SUCCESS;
191}
192
193
194/*

Callers 1

msLoadMapContextGeneralFunction · 0.85

Calls 1

msStrdupFunction · 0.85

Tested by

no test coverage detected