Created
October 21, 2015 05:40
-
-
Save uekkie/6afd227f70a622bcd9f2 to your computer and use it in GitHub Desktop.
SGMLReaderToXDocumnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XDocument xml; | |
using (var sgml = new SgmlReader() | |
{ | |
Href = url, | |
IgnoreDtd = true, | |
}) | |
{ | |
xml = XDocument.Load(sgml); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment