title: T4, XML data source and relative path in Visual Studio 2008
body: <p>I recently implemented a quick T4 template to generate some data access related classes in our app (Thanks Oleg). One problem I am facing is that my template does need to read data from an XML file that is part of the solution.</p>
  
  <p>Obviously, the path to the XML data must be relative. But when I first implemented it yesterday, it looked like it was starting from the <em>solution root's parent</em>. Today, it wanted to start from the <em>solution root</em>. Though <em>solution root</em> makes more sense, I was wondering if anybody had the official answer.</p>
  
  <p>And maybe someone has a better, more official way of reading data from a file for code-gen with T4.</p>
  
  <p>Regards,</p>
  
  <p>Eric.</p>