Questions tagged [sgmlreader]

SgmlReader is a .NET library for parsing HTML/SGML files using the XmlReader API

SgmlReader is a .NET XmlReader implementation customized for reading a wide variety of SGML documents, including HTML. Because it is based on XmlReader, one of the lowest level .NET tools for working with XML documents, you can then use a wide variety of tools on top of it to actually read the documents, such as XmlDocument and LINQ to XML.

See https://github.com/MindTouch/SGMLReader for more information.

20 questions
6
votes
2 answers

C# - Is it possible (and how) to perform XSL transformations using SgmlReader

I needed to transform the contents of an HTML web page using XSLT . Hence I used SgmlReader and wrote the snippet shown below (I thought, in the end, it's an XmlReader too ...) XmlReader xslr = XmlReader.Create(new StringReader( "
Olemis Lang
  • 738
  • 7
  • 17
4
votes
1 answer

Why does XmlDocument.GetElementById always return null?

I've got some XML (valid XHTML) that looks like this: