Can I read XML Attributes dynamically in WPF C# -


hi have 1 big concern reading xml attributes like

<xmlnode attribute1="somevalue1" attribute2="somevalue2" attribute3="somevalue3"> 

can read attribiute1, attribute2 or attribute3 dynamically? know can read attribute values nd.attributes["attribiute1"].value. how read "attribute1" dynamically?

var xml = xelement.parse(@"your xml"); foreach (var attr in xml.attributes()) {  } 

this not specific wpf, works wherever have access linq xml provider


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -