How do you diagram this sentence:

Driving to the mall, Ann stopped on the way to visit her girlfriend.

Subject: Ann

Verb: stopped
Prepositional phrases:
on the way -- modifies stopped
to the mall -- modifies driving
Participial phrase: driving to the mall
-- modifies Ann
Infinitive phrase: to visit her girlfriend -- modifies way

http://grammar.ccc.commnet.edu/grammar/diagrams2/diagrams_frames.htm