Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は XmlDocument を持っており、コンテンツ (OuterXml) をきれいに印刷された文字列として取得したいと考えています。これどうやってするの?
よろしく
これを正しく理解していると仮定すると
using System.Xml.Linq; XDocument xDoc = XDocument.Load(@".....\test.xml"); string xDocString = xDoc.ToString(SaveOptions.None);