かずきのBlog@hatena

すきな言語は C# + XAML の組み合わせ。Azure Functions も好き。最近は Go 言語勉強中。日本マイクロソフトで働いていますが、ここに書いていることは個人的なメモなので会社の公式見解ではありません。

XML

XmlTextWriteの使い方

ReaderしたんだからWriteも プログラム(C#) class Program { static void Main(string[] args) { StringWriter sw = new StringWriter(); XmlTextWriter xw = new XmlTextWriter(sw); xw.WriteStartDocument(); xw.WriteWhitespace(Environment.NewLine); xw…

XmlTextReaderの使い方の確認

プログラム using System; using System.Collections.Generic; using System.Text; using System.Xml; namespace XmlTest { class Program { static void Main(string[] args) { XmlTextReader xr = new XmlTextReader("input.xml"); while (xr.Read()) { Pr…