Hi. In my robot I’ve been using For each loop to iterate through every of my xml document. With the passing time I’ve realized I’d like to have to more xml documents and perform the same operation on them.
Those are 3 values I’m providing for each loop:
page1_XML.Element(“wrapper4”).Descendants(“table”)(2).Descendants(“tbody”).Descendants(“tr”)
page2_XML.Element(“wrapper5”).Descendants(“table”)(1).Descendants(“tbody”).Descendants(“tr”)
page3_XML.Element(“wrapper6”).Descendants(“table”)(2).Descendants(“tbody”).Descendants(“tr”)
So I managed to make a dictionary like this Dictionary<String, IEnumerable>
new Dictionary (Of String, System.Collections.Generic.IEnumerable(Of System.Xml.Linq.XElement)).
But when I try to simply use Foreach loop to iterate through Dictionary.Values which should be I assume my desired XElements I don’t receive contents as before but an error like this:
Deserialize XML: Data at the root level is invalid. Line 1, position 1.
Please advise.