title: Visual Basic Change specific line in XML
body: <p>I am happy to admit i am very new to VS. I have been slowly learning but i am stuck on two things to complete my project.</p>
  
  <p>I would like to use a button to write/change part of a line in an XML from true to false</p>
  
  <p>Specific line from XML below:</p>
  
  <pre><code>&lt;FactorChange active="true" directory="C:/Temp"/&gt;
  </code></pre>
  
  <p>I would also like to use a <code>FolderBrowserDialog</code> to be able to select a location and apply the path to a button, that when pressed writes that information(the path) to the xml (after directory) and changes (active) to true if it says false.</p>
  
  <p>e.g User selects button, Page opens and they select "directory button", this then opens the <code>FolderBrowserDialog</code> and they select the location. They now type a name for the button and press save. This button now acts as above.</p>
  
  <p>When finished with button user can select button using a <code>ToolStripMenuItem</code> and select "Clear Button" and it is left blank ready to be used again. 
  e.g File > Clear Button > "Button Name"</p>
  
  <p>I have the structure in place and the menu's but need help with the functionality. Happy to upload any files if needed :-)</p>
  
  <p>I hope this makes sense. I have searched and watch tutorials for hours but i am lost on the best way to search for my answer. I am happy for any kind of direction</p>
  
  <p>Thankyou for any help or links to the write subject information that can be given.</p>
  
  <p>AG</p>