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
Stream st = //ここは何かのストリーム | |
StreamReader sr = new StreamReader(st); | |
SgmlReader sgml = new SgmlReader() { InputStream = sr }; | |
sgml.IgnoreDtd = true; // DTDがない場合、無視しないと例外で死ぬらしいです | |
XDocument xml = XDocument.Load(sgml); | |
XNamespace ns = "http://www.w3.org/1999/xhtml"; | |
foreach (var item in xml.Descendants(ns + "td")) { | |
OldIntroFormat intro = new OldIntroFormat(); | |
string temp = item.Value; | |
} | |
st.Close(); |
0 件のコメント:
コメントを投稿