SL4: Root element is missing
- by Number8
Hello,
I know this has been asked elsewhere, but none of the questions or answers helped.
I open an xml file in my SL 4 app:
StreamResouceInfo sri = Application.GetResourceStream(new System.Uri("z.xml", UriKind.Relative));
if (null != sri)
{
XDocument xDoc = XDocument.Load(sri.Stream);
}
"Root element is missing" exception.
The xml:
Hmm, can't seem to post the xml... It is well-formed and valid, with a single root node and all tags closed.
Thanks for any hints...