Answers for "get specific xml attributes from xml file c#"

C#
5

read xml file c#

XmlDocument doc = new XmlDocument();
using (StreamReader streamReader = new StreamReader(path_name, Encoding.UTF8))
{
	contents = streamReader.ReadToEnd();
}
doc.LoadXml(contents);
Posted by: Guest on June-11-2020
0

simple xml get attributes

$myFieldName= (string) $xml->attributes()->myFieldName;
Posted by: Guest on November-05-2021

C# Answers by Framework

Browse Popular Code Answers by Language