| 1620 | |
| 1621 | |
| 1622 | XMLDeclaration* XMLDocument::NewDeclaration( const char* str ) { |
| 1623 | TIXMLASSERT( sizeof( XMLDeclaration ) == _commentPool.ItemSize() ); |
| 1624 | XMLDeclaration* dec = new (_commentPool.Alloc()) XMLDeclaration( this ); |
| 1625 | dec->_memPool = &_commentPool; |
| 1626 | dec->SetValue( str ? str : "xml version=\"1.0\" encoding=\"UTF-8\"" ); |
| 1627 | return dec; |
| 1628 | } |
| 1629 | |
| 1630 | |
| 1631 | XMLUnknown* XMLDocument::NewUnknown( const char* str ) { |
no test coverage detected