Friday, March 23, 2018
Code Search
Code Bank
.NET Applications
XSD Schema Generator
.NET/XML Training


Parse HTML with an SGMLReader

SgmlReader is an XmlReader API over any SGML document. A command line utility is also provided which outputs the well formed XML result. HTML is an SGML grammar, so you can use this tool to convert HTML into well-formed XML. The utility was created by Microsoft XML guru Chris Lovett.

This example demonstrates how to retrieve a remote Web page, parse it with the SgmlReader class, and then use XPath to access specific nodes in the well-formed HTML.

Teaches XML, XmlReader, XPathNavigator, XPathDocument
Requirements .NET 1.0
SgmlReader Download: Click Here
Example: Click Here
View Source Code: Click Here
Download Code: Click Here


.NET, SharePoint and Silverlight Training Solutions
    Online, Onsite and Video Training on .NET and SharePoint technologies available through The Wahlin Group.

© 2007 Wahlin Consulting LLC
XML for ASP.NET Developers in bookstores