code to ad rating to xml and read from this as well