I have a xml file that contains an element without a name <> and I am not allowed to change the file. I am using XMLReader and Xnode to read the file.
var el = XNode.ReadFrom(reader) as XElement;
But I am getting an error regarding the empty tag
Name cannot begin with the '>' character
Here is an example for the structure of the xml.
<element1>
<>
<element2>
</element2>
</>
</element1>
How can I handle the case where a node has a missing name without changing the xml file?