| 1343 | } |
| 1344 | |
| 1345 | const char* SimXMLDocument::getData() |
| 1346 | { |
| 1347 | if(m_paNode.empty()) |
| 1348 | return ""; |
| 1349 | |
| 1350 | const S32 iFinalElement = m_paNode.size() - 1; |
| 1351 | TiXmlNode* pNode = m_paNode[iFinalElement]; |
| 1352 | if(!pNode) |
| 1353 | return ""; |
| 1354 | |
| 1355 | if( !pNode->FirstChild() ) |
| 1356 | return ""; |
| 1357 | |
| 1358 | TiXmlText* text = pNode->FirstChild()->ToText(); |
| 1359 | if( !text ) |
| 1360 | return ""; |
| 1361 | |
| 1362 | return text->Value(); |
| 1363 | } |
| 1364 | |
| 1365 | DefineEngineMethod( SimXMLDocument, getData, const char*, (),, |
| 1366 | "@brief Gets the text from the current Element.\n\n" |
no test coverage detected