An XML-based adaptive multi-agent system for handling e-commerce activities