Just read it as XML file, then use .GetElementsByTagsName("Credentials") to select Credentials nodes and read the Username attribute of first element by [0].Attribute["Username"].Value .
How to get info from xaml file in C#
A N
81
Reputation points
Hello. In my C# program I want to know how to read this file:
<!-- Info.xaml -->
<Credentials Username="UsernameHere" Password="PasswordHere"/>
and get the Username's value and put it in a string, how can I do this?