| 1217 | } |
| 1218 | |
| 1219 | const char* SimXMLDocument::getText() |
| 1220 | { |
| 1221 | if(m_paNode.empty()) |
| 1222 | return ""; |
| 1223 | |
| 1224 | const S32 iFinalElement = m_paNode.size() - 1; |
| 1225 | tinyxml2::XMLNode* pNode = m_paNode[iFinalElement]; |
| 1226 | if(!pNode) |
| 1227 | return ""; |
| 1228 | |
| 1229 | if(!pNode->FirstChild()) |
| 1230 | return ""; |
| 1231 | |
| 1232 | tinyxml2::XMLText* text = pNode->FirstChild()->ToText(); |
| 1233 | if( !text ) |
| 1234 | return ""; |
| 1235 | |
| 1236 | return text->Value(); |
| 1237 | } |
| 1238 | |
| 1239 | DefineEngineMethod( SimXMLDocument, getText, const char*, (),, |
| 1240 | "@brief Gets the text from the current Element.\n\n" |