You cannot claim an exemption for a dependent unless that person is a U.S. citizen or resident, or a resident of Canada or Mexico, for some part of the calendar year in which your tax year begins. However, there is an exception for certain adopted children, as explained next.
the above is copied from:
http://www.irs.gov/publications/p501/ar02.html#d0e3195