| 1359 | } |
| 1360 | |
| 1361 | const char* SimXMLDocument::getData() |
| 1362 | { |
| 1363 | if(m_paNode.empty()) |
| 1364 | return ""; |
| 1365 | |
| 1366 | const S32 iFinalElement = m_paNode.size() - 1; |
| 1367 | tinyxml2::XMLNode* pNode = m_paNode[iFinalElement]; |
| 1368 | if(!pNode) |
| 1369 | return ""; |
| 1370 | |
| 1371 | if( !pNode->FirstChild() ) |
| 1372 | return ""; |
| 1373 | |
| 1374 | tinyxml2::XMLText* text = pNode->FirstChild()->ToText(); |
| 1375 | if( !text ) |
| 1376 | return ""; |
| 1377 | |
| 1378 | return text->Value(); |
| 1379 | } |
| 1380 | |
| 1381 | DefineEngineMethod( SimXMLDocument, getData, const char*, (),, |
| 1382 | "@brief Gets the text from the current Element.\n\n" |
no test coverage detected