views:

106

answers:

0

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...

Let's try it w/o the angle brackets:

xml version="1.0" encoding="utf-8"
Root
    Collection name="Fonts"
        Value Lucida /Value
        Value Arial /Value
   /Collection
/Root