| 1172 | } |
| 1173 | |
| 1174 | void SimXMLDocument::addText(const char* text) |
| 1175 | { |
| 1176 | if(m_paNode.empty()) |
| 1177 | return; |
| 1178 | |
| 1179 | const S32 iFinalElement = m_paNode.size() - 1; |
| 1180 | tinyxml2::XMLNode* pNode = m_paNode[iFinalElement]; |
| 1181 | if(!pNode) |
| 1182 | return; |
| 1183 | |
| 1184 | tinyxml2::XMLText* cText = m_qDocument->NewText(text); |
| 1185 | pNode->InsertEndChild( cText ); |
| 1186 | } |
| 1187 | |
| 1188 | DefineEngineMethod( SimXMLDocument, addText, void, ( const char* text ),, |
| 1189 | "@brief Add the given text as a child of current Element.\n\n" |
no test coverage detected