Can we use XMPP for instant messaging on web and mobile apps?

I want to create an instant messaging web application with ASP.net and a mobile app in titanium. Can we create this App using XMPP (e.g. jabber)?

My requirement is: if a user sends a message from the website, those messages will be shown on mobile, and vice-versa.

please let me know is this possible or not ? if yes so how can we create and what is flow for developing this system on web and mobile.

Please suggest me

Thank you!