title: Create XML Node from String in PowerShell and append
body: <p>I would like to append the following to the httpHandler section of a web.config:</p>
  
  <pre><code>&lt;add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" /&gt;
  </code></pre>
  
  <p>Currently I am creating a node and setting the attributes like this:</p>
  
  <pre><code>$xmlDoc = (Get-Content $webConfig) -as [Xml]
  $root = $xmlDoc.get_DocumentElement();
  
  $handler1 = $xmlDoc.CreateNode('element',"add",'')
  $handler1.SetAttribute('name','Telerik_Web_UI_DialogHandler_aspx')
  $handler1.SetAttribute('verb','*')
  $handler1.SetAttribute('preCondition','integratedMode')
  $handler1.SetAttribute('path','Telerik.Web.UI.DialogHandler.aspx')
  $handler1.SetAttribute('type','Telerik.Web.UI.DialogHandler')
  $root.'system.webServer'.handlers.AppendChild($handler1);
  </code></pre>
  
  <p>Is there an easy way to just convert the string to a node and append it? Or to just add the string at the end of the children?</p>