二者都可以。
demand to do sth  意为“要求去做...”。
如,He demanded to be sent to Tibet.
他要求被派往西藏。
I demand to do the work.
我要求承担这工作。
demand doing sth  意为“某事情需要被干...”。
如,The flowers demand watering.这些花需要浇水。
The higher demand was advanced doing well the political education in new situation.
新形势下对搞好政治教育提出了新的要求。
demand后接to do还是doing
demand 需要,后边加 to Do ,doing 都可以,但是,意思不同。
demand to Do 意思是需要。同义词是need want require
例如 He demand to go to the Usa 他要求去美国
demand doing意思是需要被。主动形式表示被动含义。
The trees demands watering.这些树需要浇水了。