Added support for Color resource and Fix xml comparison function