I know what you are going to say.. I took the easy way out and used the Jsoup library for this task.. As a punishment, it's failing the last condition. I appreciate the help.. Thanks..