PHOENIX (AP) — Republican presidential hopeful John McCain attended church Sunday and later visited a Veterans Affairs hospital in his hometown.

The senator and his wife, Cindy, took part in the 75-minute service at the North Phoenix Baptist Church and shook hands with greeters, ushers and church members before and after the ceremony.

McCain had remained out of sight for most of the holiday weekend and many of the hundreds of worshippers did not seem to notice that he was sitting in the church with his wife.

The theme of the sermon by Pastor Dan Yeary was that people can lift their spiritual lives through sacrifice.

Meantime, Democratic presidential candidate Barack Obama took a day off the campaign trail Sunday in Chicago, attending a neighborhood barbecue with his family. He plans to campaign in Charlotte, N.C., today and in Atlanta on Tuesday.