---------------------------------------------------------------------------
| 136 | } |
| 137 | //--------------------------------------------------------------------------- |
| 138 | void XMLElementEx::wb(const AnsiString name, bool val) |
| 139 | { |
| 140 | XMLElement * p = FirstChildElement(name.c_str()); |
| 141 | if( ! p ) |
| 142 | { |
| 143 | XMLElement * e = GetDocument()->NewElement(name.c_str()); |
| 144 | InsertEndChild(e); |
| 145 | e->SetText(val); |
| 146 | } |
| 147 | else |
| 148 | { |
| 149 | p->SetText(val); |
| 150 | } |
| 151 | } |
| 152 | //--------------------------------------------------------------------------- |
| 153 | #pragma package(smart_init) |
no test coverage detected