| 1277 | } |
| 1278 | |
| 1279 | void SimXMLDocument::removeText() |
| 1280 | { |
| 1281 | if(m_paNode.empty()) |
| 1282 | return; |
| 1283 | |
| 1284 | const S32 iFinalElement = m_paNode.size() - 1; |
| 1285 | tinyxml2::XMLNode* pNode = m_paNode[iFinalElement]; |
| 1286 | if(!pNode) |
| 1287 | return; |
| 1288 | |
| 1289 | if( !pNode->FirstChild() ) |
| 1290 | return; |
| 1291 | |
| 1292 | tinyxml2::XMLText* text = pNode->FirstChild()->ToText(); |
| 1293 | if( !text ) |
| 1294 | return; |
| 1295 | |
| 1296 | pNode->DeleteChild(text); |
| 1297 | } |
| 1298 | |
| 1299 | DefineEngineMethod( SimXMLDocument, removeText, void, (),, |
| 1300 | "@brief Remove any text on the current Element.\n\n" |
no test coverage detected