title: C# Windows form App with SharePoint
body: <p>Im new to the whole C# and Visual Studio program. 
  I have been given a task to create a windows form app using C# to connect to a SharePoint site and retrieve any data from there e.g. list, files. 
  I have designed my application so that you can manually add the site url which you want then click a button and this will generate a xml file with all the data which is in the site. 
  This is the way i need my xml to be set out:</p>
  
  <p>The report should be in either csv or xml format e.g.</p>
  
  <pre><code>&lt;SiteCollection Name=”SiteCollection”&gt;
  
  &lt;Web Name=”Web Name”&gt;
  
  &lt;Library Name=”Library Name”&gt;
  
  &lt;Document Name=”DocName1”/&gt;
  
  &lt;Folder Name=”Folder Name”&gt;
  
  &lt;Document Name=”DocName2”/&gt;
  
  &lt;Document Name=”DocName3”/&gt;
  
  &lt;/Folder&gt;
  
  &lt;/Library&gt;
  
  &lt;List Name=”List Name”&gt;
  
  &lt;Web Name=”Web Name”&gt;
  
  &lt;Library Name=”Library Name”&gt;
  
  &lt;Document Name=”DocName1”/&gt;
  
  &lt;Folder Name=”Folder Name”&gt;
  
  &lt;Document Name=”DocName2”/&gt;
  
  &lt;Document Name=”DocName3”/&gt;
  
  &lt;/Folder&gt;
  
  &lt;/Library&gt;
  
  &lt;List Name=”List Name”&gt;
  
  &lt;/Web&gt;
  
  &lt;/Web&gt;
  
  &lt;/SiteCollection&gt;
  </code></pre>
  
  <p>This is how I have my code for my app set out so far: </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows.Forms;
  using Microsoft.SharePoint;
  using Microsoft.SharePoint.Administration;
  
  
  namespace SharePoint.College
  {
  public partial class Form1 : Form
  {
  public Form1()
  {
  InitializeComponent();
  }
  
  private void Form1_Load(object sender, EventArgs e)
  {
  
  }
  
  private void textBox1_TextChanged(object sender, EventArgs e)
  {
  
  }
  
  private void btn1_Click(object sender, EventArgs e)
  {
  
  } 
  }
  }
  </code></pre>
  
  <p>Im just looking for some advice and some help to start this off. </p>
  
  <p>Thanks for any replies </p>