C#
C# XML to Dictionary
백엔드담당자
2019. 5. 13. 18:32
반응형
C# XML 파일 로드
XML to Dictionary
XElement root = XElement.Load(@“books.xml”);
Dictionary<string, string> xmlDic = new Dictionary<string, string>();
foreach(XElement el in root.Elements())
xmlDic.Add(el.Name.LocalName, el.Value);
반응형