This project has moved. For the latest updates, please go here.

HTMLDocument.DocumentElement not in object browser

Topics: User Forum
Mar 20, 2011 at 7:21 PM

I'm using Visual Studio 2010 and have included the reference for the agility pack.


I'm using the example from the codeplex page and VS 2010 is complaining that doc.DocumentElement does not exist and it does not appear in the object browser either.

Mar 21, 2011 at 7:44 PM

Should be DocumentNode (I keep accidentally typing DocumentElement..). I think I might just add DocumentElement in 2.0 to be more in line with .NET XML namespace

Mar 22, 2011 at 2:21 AM

Ah, thank you for the clarification. Further how would one access the <title> element of an html document?