The Media Center Sandbox

Resources and discussion for developing experiences in the Windows Media Center platform.
Welcome to The Media Center Sandbox Sign in | Join | Help
in Search

Loading xml file

Last post 07-26-2008, 3:36 AM by rahul.katkar. 1 replies.
Sort Posts: Previous Next
  •  05-19-2008, 12:23 AM 7533

    Loading xml file

    hey,

    I want to load a file from my xaml browser application in windows media center. I always get a fault about security. I looked already on msdn site for security but nothing that realy helps.

    To make it a bit more clear: File is in my solution so you can acces this way or another...

    if you need more info just ask

    best regards
  •  07-26-2008, 3:36 AM 7957 in reply to 7533

    Re: Loading xml file

     

    If files in your Poject solution then you can access .

    try with following code.

    XmlDocument doc = new XmlDocument(); // instance of XmlDocument which will hold Xml data

    Stream stream = Application.GetResourceStream(new Uri(@"\link\your.xml", UriKind.Relative)).Stream;

    doc.Load(stream);

     

     

     Rahul

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems