Can't access XElement after adding it as Value in Dictionary

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.

it looks like you are trying to deserialize the result from the retrieval, which is an collection of tr elements.

these series do not have a unique root element as it is a series of tr elements

In general there is not an additional serialization needed as you can directly work with the Xelements from the collection

OR

wrap the tr collection with a dummy root element