| 855 | |
| 856 | |
| 857 | const char* SimXMLDocument::getData() |
| 858 | { |
| 859 | if(m_paNode.empty()) |
| 860 | return ""; |
| 861 | |
| 862 | const int iFinalElement = m_paNode.size() - 1; |
| 863 | TiXmlNode* pNode = m_paNode[iFinalElement]; |
| 864 | if(!pNode) |
| 865 | return ""; |
| 866 | |
| 867 | TiXmlNode * firstChild = pNode->FirstChild(); |
| 868 | |
| 869 | if(!firstChild) |
| 870 | return ""; |
| 871 | |
| 872 | TiXmlText* text = firstChild->ToText(); |
| 873 | if( !text ) |
| 874 | return ""; |
| 875 | |
| 876 | return text->Value(); |
| 877 | } |
no test coverage detected