title: C# NewtonSoft JsonConvert serializexmlnode to nested array?
body: <p>Default behaviour of JSON to XML serialization is arrays elements appear on the same level as non-array elements. Like on example from <a href="https://www.newtonsoft.com/json/help/html/ConvertJsonToXml.htm" rel="nofollow noreferrer">https://www.newtonsoft.com/json/help/html/ConvertJsonToXml.htm</a> :</p>
  
  <pre><code> {
    'Email': 'james@example.com',
    'Active': true,
    'CreatedDate': '2013-01-20T00:00:00Z',
    'Roles': [
      'User',
      'Admin'
    ]
   }
  </code></pre>
  
  <p>is serialised into</p>
  
  <pre><code>&lt;Root&gt;
     &lt;Email&gt;james@example.com&lt;/Email&gt;
     &lt;Active&gt;true&lt;/Active&gt;
     &lt;CreatedDate&gt;2013-01-20T00:00:00Z&lt;/CreatedDate&gt;
     &lt;Roles&gt;User&lt;/Roles&gt;
     &lt;Roles&gt;Admin&lt;/Roles&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>But I need XML array in the form </p>
  
  <pre><code>&lt;Roles&gt;
    &lt;Item&gt;User&lt;/Item&gt;
    &lt;Item&gt;Admin&lt;/Item&gt;
  &lt;/Roles&gt;
  </code></pre>
  
  <p>How could I achieve this?</p>
  
  <p>Thanks in advance.</p>