You need an additional class:
public class RESPONSE
{
public List<School> SchoolList;
}
Then you can use XmlSerializer Class to deserialize this xml.
string xmlString = File.ReadAllText(@"C:\...\2.xml");
XmlSerializer xmlSerializer = new XmlSerializer(typeof(RESPONSE));
using (TextReader reader = new StringReader(xmlString))
{
RESPONSE result = (RESPONSE)xmlSerializer.Deserialize(reader);
}
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.