this might be a silly noobish question, but please bear with me =)
In my program I receive a piece of xml something akin to this:
<markers>
        <marker id="35" name="Test1" address="anyway123" type="event"/>
        <marker id="370" name="Test2" address="" type="event"/>
        <marker id="251" name="Test3" address="somewhere 1337" type="com"/>
</markers>
What I want to know if there's a way to have a class, containing sort of something like this:
private int id;
private string name;
private string address;
private string type;
public int Id {
    get {
        return id;
    }
    set {
        id = value;
    }
}
public string Name {
    get {
        return name;
    }
    set {
        name = value;
    }
}
public string Address {
    get {
        return address;
    }
    set {
        address = value;
    }
}
public string Type {
    get {
        return type;
    }
    set {
        type = value;
    }
}
Lets call it "EventClass" and then simply go like:
Could I then simply go something like this: List eventList = "XMLStuff"
And if yes, what would XML stuff entail? xD
Regards, -Logan =)
 
    