Thanks. One more question, though. I'm not sure how to limit the scope of my search so that I'm just extracting the id attribute from the sections that I want. I.e., I want the id attributes from the forms in sections 1 and 3 but not from 2. Maybe I'm missing something.