title: how we can set value for xml element using XmlDocument class
body: <p>Is it possible to set value dynamically for any XML element using the <code>XmlDocument</code> class? Suppose my XML is </p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
      &lt;env:Header xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/&gt;
      &lt;soapenv:Body&gt;
          &lt;v9:ProcessShipmentReply xmlns:v9="http://fedex.com/ws/ship/v9"&gt;
              &lt;v9:HighestSeverity xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;SUCCESS&lt;/v9:HighestSeverity&gt;
              &lt;v9:Notifications xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
                  &lt;v9:Severity&gt;SUCCESS&lt;/v9:Severity&gt;
                  &lt;v9:Source&gt;ship&lt;/v9:Source&gt;
                  &lt;v9:Code&gt;0000&lt;/v9:Code&gt;
                  &lt;v9:Message&gt;Success&lt;/v9:Message&gt;
                  &lt;v9:LocalizedMessage&gt;Success&lt;/v9:LocalizedMessage&gt;
              &lt;/v9:Notifications&gt;
              &lt;v9:CompletedShipmentDetail&gt;
                  &lt;v9:CompletedPackageDetails xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
                      &lt;v9:SequenceNumber&gt;1&lt;/v9:SequenceNumber&gt;
                      &lt;v9:TrackingIds&gt;
                          &lt;v9:TrackingIdType&gt;GROUND&lt;/v9:TrackingIdType&gt;
                          &lt;v9:TrackingNumber&gt;634649515000016&lt;/v9:TrackingNumber&gt;
                      &lt;/v9:TrackingIds&gt;
                      &lt;v9:Barcodes&gt;
                          &lt;v9:BinaryBarcodes&gt;
                              &lt;v9:Type&gt;COMMON_2D&lt;/v9:Type&gt;
                              &lt;v9:Value&gt;Wyk+HjAxHTAyMDI3ODAdODQwHTEzNx02MzQ2NDk1&lt;/v9:Value&gt;
                          &lt;/v9:BinaryBarcodes&gt;
                          &lt;v9:StringBarcodes&gt;
                              &lt;v9:Type&gt;GROUND&lt;/v9:Type&gt;
                              &lt;v9:Value&gt;9612137634649515000016&lt;/v9:Value&gt;
                          &lt;/v9:StringBarcodes&gt;
                      &lt;/v9:Barcodes&gt;
                      &lt;v9:Label&gt;
                          &lt;v9:Type&gt;OUTBOUND_LABEL&lt;/v9:Type&gt;
                          &lt;v9:ShippingDocumentDisposition&gt;RETURNED&lt;/v9:ShippingDocumentDisposition&gt;
                          &lt;v9:Resolution&gt;200&lt;/v9:Resolution&gt;
                          &lt;v9:CopiesToPrint&gt;1&lt;/v9:CopiesToPrint&gt;
                          &lt;v9:Parts&gt;
                              &lt;v9:DocumentPartSequenceNumber&gt;1&lt;/v9:DocumentPartSequenceNumber&gt;
                              &lt;v9:Image&gt;iVBORw0KGgoAAAANSUhEUgAAAyAAAASwAQAAAAAryhMIAAAagEl&lt;/v9:Image&gt;
                          &lt;/v9:Parts&gt;
                      &lt;/v9:Label&gt;
                  &lt;/v9:CompletedPackageDetails&gt;
              &lt;/v9:CompletedShipmentDetail&gt;
          &lt;/v9:ProcessShipmentReply&gt;
      &lt;/soapenv:Body&gt;
  </code></pre>
  
  <p></p>
  
  <p>How could I set value for the below element like</p>
  
  <pre><code>&lt;v9:Severity&gt;SUCCESS&lt;/v9:Severity&gt;
  &lt;v9:Source&gt;ship&lt;/v9:Source&gt;
  </code></pre>
  
  <p>I know how to extract data from XML and I think it is also possible to set value for the XML element using <code>XMLDocument</code> class. Looking for guidance.</p>