Exemple #1
0
	XMLDeclaration* XMLDocument::NewDeclaration( const char* str )
	{
		XMLDeclaration* dec = new (_commentPool.Alloc()) XMLDeclaration( this );
		dec->_memPool = &_commentPool;
		dec->SetValue( str ? str : "xml version=\"1.0\" encoding=\"UTF-8\"" );
		return dec;
	}
XMLDeclaration* XMLDocument::NewDeclaration( const char* str )
{
	XMLDeclaration* dec = new (commentPool.Alloc()) XMLDeclaration( this );
	dec->memPool = &commentPool;
	dec->SetValue( str );
	return dec;
}
Exemple #3
0
	bool XMLPrinter::Visit( const XMLDeclaration& declaration )
	{
		PushDeclaration( declaration.Value() );
		return true;
	}