DHAKA, Bangladesh — A woman trapped for 17 days beneath the rubble of a collapsed building on the outskirts of Dhaka was discovered alive on Friday and then rushed to a nearby military hospital after rescuers pulled her free.