Xbee wifi and arduino.

I am trying to get information from Internet through xbee-wifi and operate LED which will change the color by using that information.For example,we get the data which is red,the red led will turn on and so on.

But,I can’t understand how to connect xbee-wifi and arduino and I really want libraries for this purpose.If we don’t have any libraries yet,I’d like to know the information about this like blog or books.

Thanks. [:(]