Check out example codes for "populate array from an XML file". It will help you in understanding the concepts better.

Code Example 1

string[] MyArray = XDocument.Parse(xml).XPathSelectElements("//a").Select(e => e.Attributes("href").FirstOrDefault().Value).ToArray()`

Learn ReactJs, React Native from akashmittal.com