WP7 and HAP

Topics: Developer Forum
Nov 7, 2011 at 11:44 AM

Hello.

I'm developing a WP7.5 app, and I'm using HAP.
But I have some syntax problems, I'm using linq and hap.
I have following structure:

<div id="inhalt">
<div class="content-box-s">...</div>
<div class="content-box-s">...</div>
<div class="content-box-s">...</div>
</div>

I'm trying to select these 3 inner div's with following query:

var divs = htmlDoc.DocumentNode.Descendants("div").Where(x => x.Id == "inhalt")
.Select(a => a.Descendants("div").Where(s => s.Attributes["class"].Value == "content-box-s"));

but I always get null...
Please, what am I doing wrong?

Thanks in advance =)