The structure of coronal magnetic loops