I am developing a framework, where I need to get the value of the attribute from a line(string) given string of attribute in C#.
Example:Here is the XML
<av:Button Name="btn_1" Width="80" Height="25" x:Uid="btn_1" av:Canvas.Left="168.1" av:Canvas.Top="95.1" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">My Button Content</av:Button>
When input is Name, it should return btn_1. When input is Width, it should return 80.
PS: I have implemented this using some hard-coded positions of words, but it fails sometime. -TIA