title: XMLWriter: WriteStartElement with a tag name and string to indicate tag name
body: <p>I have same tag names and different strings to different the tag name. </p>
  
  <p>here is the XML.</p>
  
  <pre><code>&lt;order&gt;
    &lt;ID&gt;1001&lt;/ID&gt; 
    &lt;config&gt;
      &lt;properties&gt;
        &lt;entry key="Total"&gt;10&lt;/entry&gt; 
        &lt;entry key="Name"&gt;name&lt;/entry&gt; 
        &lt;entry key="Config"&gt;COMMON&lt;/entry&gt; 
        &lt;entry key="Delivery"&gt;15-FEBRUARY-2013&lt;/entry&gt; 
        &lt;entry key="Setting"&gt;name&lt;/entry&gt; 
      &lt;/properties&gt;
      &lt;id&gt;19&lt;/id&gt; 
    &lt;/config&gt;
    &lt;aID&gt;58239346&lt;/aID&gt; 
  &lt;/order&gt;
  </code></pre>
  
  <p>here is my current code:</p>
  
  <pre><code>public String cards(string id)
      {
          StringWriter str = new StringWriter();
          XmlTextWriter xmlWriter = new XmlTextWriter(str);
          xmlWriter.Formatting = Formatting.Indented;
          xmlWriter.WriteStartDocument();
          xmlWriter.WriteStartElement("order");
          xmlWriter.WriteElementString("ID", "1001");
          xmlWriter.WriteStartElement("config");
          xmlWriter.WriteStartElement("properties");
          /*
           * Create &lt;entry key&gt; at here 
           * 
           * 
           * 
           *
           */
          xmlWriter.WriteEndElement();
          xmlWriter.WriteEndElement();
          xmlWriter.WriteElementString("ClientID", id);
          xmlWriter.WriteEndElement();
          xmlWriter.WriteEndDocument();
          xmlWriter.Flush();
          xmlWriter.Close();
          return str.ToString();
      }
  </code></pre>
  
  <p>How to write the entry tag for XMLWriter??? I have no idea how to write it.</p>