title: Open SharePoint 2010 list item via custom web part
body: <p>On my SharePoint 2010 site I have a list of items (Document Library). This library contains xml files.  </p>
  
  <p>Also, I have a Visual Web Part which displays data from these xml files.  </p>
  
  <p>Is there a way to somehow <em>bind</em> the web part to this document library so that the items will be opened <em>via</em> the web part?      </p>
  
  <p><em>Note:
  At this point the list item has a hyperlink field which points to the web part page and provides the location of xml file as query string. When the link is accessed, the web part gets provided xml data and parses it as it should.<br>
  The problem with this approach is that an absolute url is saved in item's field, which will result into problems when server is changed.</em>  </p>
  
  <p>Thank You!</p>