First of all, i'm sorry, i know my question will be very basic and stuff but please i would really appreciate some help, i'm under lots of pressure, so making smart comments and being ironic wouldn't help
I have this code: At least i'm trying. I have this xml file, i need to save all it's attributes in a class so i can just duplicate it whenever i need to.
I don't know how to.
public static void firstFileXml(string sXml1)
{
var root = XElement.Load(@"sXml1");
var controlElementsFirst = root.Descendants("CONTROL");
}
The xml file has attributes like: label, text, label_w etc. I need a function or somethign that will allow me to enter like: explore(xmlLocation) and to do the rest. Because i need to do it for a few xml files
I need to build a class that will allow me to read it. Suppose i have this file of xml:
<books>
<book label = '' book page = '' book intro =''>
<book label = '' book page = '' book intro =''>
<book label = '' book page = '' book intro =''>
<books>
And so on. I need first to read this xml file then store the book attributes in a class, so i can use it for hundreds of books later
No comments:
Post a Comment