| 1673 | |
| 1674 | |
| 1675 | void XMLElement::SetText( const char* inText ) |
| 1676 | { |
| 1677 | if ( FirstChild() && FirstChild()->ToText() ) |
| 1678 | FirstChild()->SetValue( inText ); |
| 1679 | else { |
| 1680 | XMLText* theText = GetDocument()->NewText( inText ); |
| 1681 | InsertFirstChild( theText ); |
| 1682 | } |
| 1683 | } |
| 1684 | |
| 1685 | |
| 1686 | void XMLElement::SetText( int v ) |
no test coverage detected