Duplicate of how can i store the attributes of an xml node in an array of strings, you should edit the original question.
I am a newbie so I am reframing earlier asked question. I have a project where my xmldoc is created with help of XmlDocument class and then loaded with the help of xmldoc.Load() method.With the help of addnodes() method,i add nodes to tree,thus its displayed in a winform.Now when i click on an xmlnode in the treeview its attributes get displayed in the listbox.Now i have divided the whole logic in UI and back end part. Now what i want that my back end class contains the method to display atrributes(name and value) of the xml node clicked and these are stored in an array and it is returned as a string to my front end class in the treev_AfterSelect event. How can i do it?I need to store attributes of the node i click on winform in a string array and display in listbox.How to do it?