! * \brief Returns the TEXT node value of the current node. */
| 298 | * \brief Returns the TEXT node value of the current node. |
| 299 | */ |
| 300 | const std::string GetTextValue(IXML_Element *element) |
| 301 | { |
| 302 | if (!element) { |
| 303 | return stdEmptyString; |
| 304 | } |
| 305 | IXML_Node *text = ixmlNode_getFirstChild(&element->n); |
| 306 | const DOMString s = ixmlNode_getNodeValue(text); |
| 307 | std::string ret; |
| 308 | if (s) { |
| 309 | ret = s; |
| 310 | } |
| 311 | |
| 312 | return ret; |
| 313 | } |
| 314 | |
| 315 | |
| 316 | /*! |
no outgoing calls
no test coverage detected