views:

20

answers:

0

Hey I'm connecting to a .sdf database file and i need it to be generic project wide, no matter what computer the project is on. Currently I cana cheive this in C#/ASP.NET witht he following code:

"Data Source=" + (System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "/dbmon.sdf;Password=dbmon"

Now how can I achieve something like this for an XML file. (It's for spring-config if that helps)