I am displaying a html in a custom activity with a webview. I am overriding

```
public boolean shouldOverrideUrlLoading(WebView view, String url) {

```

to intercept certain urls. Now I would like to be able to figure out some more details about the html around that url.

In my case I would like to get the html element that contains the url. E.g. if the url comes from 

```
<a href="http://stackoverflow.com/users/136445/manfred-moser">Manfred Moser</a>

```

I would like to be able to somehow retrieve the value "Manfred Moser" from within the anchor tag. Is there a way to do that. I found that you do not have access to the DOM from Java.

One way I can think of would be to download the page separately and parse it all before even loading it in webview. However that is an ugly hack at best. Is there a better way?