| 1759 | |
| 1760 | |
| 1761 | XMLDeclaration* XMLDocument::NewDeclaration( const char* str ) |
| 1762 | { |
| 1763 | TIXMLASSERT( sizeof( XMLDeclaration ) == _commentPool.ItemSize() ); |
| 1764 | XMLDeclaration* dec = new (_commentPool.Alloc()) XMLDeclaration( this ); |
| 1765 | dec->_memPool = &_commentPool; |
| 1766 | dec->SetValue( str ? str : "xml version=\"1.0\" encoding=\"UTF-8\"" ); |
| 1767 | return dec; |
| 1768 | } |
| 1769 | |
| 1770 | |
| 1771 | XMLUnknown* XMLDocument::NewUnknown( const char* str ) |
no test coverage detected