**msGetMapContextXMLHashValue() ** **Get the xml value and put it in the hash table ** */
| 100 | ** |
| 101 | */ |
| 102 | int msGetMapContextXMLHashValue( CPLXMLNode *psRoot, const char *pszXMLPath, |
| 103 | hashTableObj *metadata, char *pszMetadata ) |
| 104 | { |
| 105 | char *pszValue; |
| 106 | |
| 107 | pszValue = (char*)CPLGetXMLValue( psRoot, pszXMLPath, NULL); |
| 108 | if(pszValue != NULL) |
| 109 | { |
| 110 | if( metadata != NULL ) |
| 111 | { |
| 112 | msInsertHashTable(metadata, pszMetadata, pszValue ); |
| 113 | } |
| 114 | else |
| 115 | { |
| 116 | return MS_FAILURE; |
| 117 | } |
| 118 | } |
| 119 | else |
| 120 | { |
| 121 | return MS_FAILURE; |
| 122 | } |
| 123 | |
| 124 | return MS_SUCCESS; |
| 125 | } |
| 126 | |
| 127 | /* |
| 128 | **msGetMapContextXMLHashValue() |
no test coverage detected