title: xml to json using Node.js with node having partcular name as array type
body: <p>I try to parse a xml string to json in such a way that a node having particular name should always be an array type.<br>
  I am using </p>
  
  <blockquote>
    <p>npm node module xml2js</p>
  </blockquote>
  
  <p>for </p>
  
  <blockquote>
    <p>conversion of xml to json.</p>
  </blockquote>
  
  <p>I need an array type conversion for a node having a particular name.<br><br>
  How do I make an <strong>array type conversion</strong> for a node having a particular name?<p></p>
  
  <pre><code>"children": { "id": "211c838e-3e2d-4919-ab09-dd7f8a901b97", "parentId": "a4968d08-aaee-45c6-bc75-849830226248"}
  
  "children": { "id": "15b3e6b9-b546-4bf6-9787-322ecce469c1", "parentId": "c5c14c51-be3f-4d8b-866c-243367d785fd", "offset": { "x": "-107", "y": "109" }, "foldChildren": "false", "branchColor": "#000000", "children": "" }
  </code></pre>
  
  <p>The objects above are the part of my json string which has children as object.<br> I need that all objects with the name <code>children</code> should be of the type array.</p>
  
  <p>Please help me out.</p>