Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Manipulate HTML string as DOM

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike Gleason jr Couturier - 28 Mar 2008 17:18 GMT
(.NET 2.0, C#, VS 2005)

Hi,

I have a string representing a web page file.

I want to convert the string into an object to navigate through it's
elements.

I tried XmlDocument but I get a parsing error on the string...

Thanks
bruce barker - 28 Mar 2008 17:55 GMT
you need an HtmlParser. .net does not supply one other than hosting IE (not
recommended for an asp.net site).

google HtmlParser for the toolkit of your choice. (most are in java though)

-- bruce (sqlwork.com)

> (.NET 2.0, C#, VS 2005)
>
[quoted text clipped - 8 lines]
>
> Thanks
Peter Bromberg [C# MVP] - 28 Mar 2008 18:26 GMT
Look into Simon Mourier's HtmlAgilityPack. It provides an XML-DOM like
HtmlDocument class that does what Bruce said. Find it on codeplex.com
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net

> (.NET 2.0, C#, VS 2005)
>
[quoted text clipped - 8 lines]
>
> Thanks
Mike Gleason jr Couturier - 28 Mar 2008 19:41 GMT
> (.NET 2.0, C#, VS 2005)
>
[quoted text clipped - 8 lines]
>
> Thanks

Thanks a lot guys!

Mike

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.