Why XDocument can't find my file?
<p>It's my first question on the forum so don't be too rude please ;)
I used to find answers to my question here but now i'm can't resolve my problem...</p>

<p>I'm currently trying to work with XML files through XDocument in a CocosSharp project.</p>

<p>I'm trying to load an XML file like this:</p>

<pre><code>        private string path = "game.xml";

    private void GetXMLData()
    {
        try
        {
            XDocument testXML = XDocument.Load(path);
        }
        catch (Exception err)
        {
            string s = err.ToString();
        }
    }
</code></pre>

<p>but it returns me an error</p>

<pre><code>"Could not find file \"/game.xml\"."
</code></pre>

<p>i've tried all the syntax possibilities (~/ / // \ \ ./ .\ ..\ ../) in path
My XML file is set on "Copy if newer" and "embeded ressource" and is store at root.</p>

<p>Does anyone have an idea?</p>

<p>Thx!!</p>