Sie befinden sich an der grün markierten Position
<document id="1"> <content> <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body> <div id="outer"> <div id="inner"> <ul> <li><a href="http://www.google.de/">Google</a> <ul> <li><a href="http://earth.google.de/">Google Earth</a></li> <li><a href="http://picasa.google.de/intl/de/">Picasa</a></li> </ul> </li> <li><a href="http://www.heise.de/">Heise</a></li> <li><a href="http://www.yahoo.de/">Yahoo</a></li> </ul> </div> </div> </body> </html> </content></document>
Resolve the id-attribute of the div-element nearest to you. The expression selected by you should work at any point within the nested list.