How to Include an xml file from a silverlight class library into the xap file.
        Posted  
        
            by cmaduro
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by cmaduro
        
        
        
        Published on 2010-04-06T13:21:45Z
        Indexed on 
            2010/04/06
            13:23 UTC
        
        
        Read the original article
        Hit count: 309
        
Silverlight
|embed
I have a certain config.xml file in one of my projects (Silverlight class library) in a folder in the solution. It's build action is set to content. In that same project I am trying to load the xml file by saying:
XDocument xml = XDocument.Load("/config.xml");
This unfortunately is not working. Upon inspecting the xap file, I see that the xml file is not being copied to it. I am using Visual Studio 2010 RC.
© Stack Overflow or respective owner