An XML Framework for Controlled Sharing of Resources in Virtual Communities