Hello, I have a html document here which goes like this: <A name=4></a><b>Table of Contents</b> ......... <A name=5></a><b>Preface</b> Can someone tell me how I can get the string between the <b> tag for an a tag for a given value of the name attribute. Thanks, Shriphani Palakodety