예제 #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;
	}
예제 #2
0
XMLDeclaration* XMLDocument::NewDeclaration( const char* str )
{
	XMLDeclaration* dec = new (commentPool.Alloc()) XMLDeclaration( this );
	dec->memPool = &commentPool;
	dec->SetValue( str );
	return dec;
}
예제 #3
0
	bool XMLPrinter::Visit( const XMLDeclaration& declaration )
	{
		PushDeclaration( declaration.Value() );
		return true;
	}