Currently I have a custom Web Part, deployed as a Feature, and it accesses an XML file as follows:
string sUri = @"C:\inetpub\wwwroot\wss\VirtualDirectories\80" + @"\wpresources\links.xml";
ds = new DataSet();
ds.ReadXml(sUri);
What is the correct way to include an XML file as part of a SharePoint Feature deployment?
Best Answer
Load it into the 12 hive under your layouts directory and link to it via
. Or add a subdirectory to group all of your file together. e.g.
I am using STSDEV and that automagically puts an entry into the manifest.xml under
e.g.