title: How to convert json arry to xml in node.js
body: <ol>
  <li>Input: 
  It have a json object, such as "root" object</li>
  <li>Output: 
  and now, how to convert to a  xml format like this:</li>
  <li>Program Language, you can use node, java,etc</li>
  </ol>
  
  <p>Input json object: </p>
  
  <pre><code>"root" :{
     "Yylb": {
         "Yylb_id": [1,2]
       },
     "Fj": [
       {
        "Fjxx":1
       },
       {
       "Fjxx":2
       }
    ]
  }
  </code></pre>
  
  <p>Outpu xml format:</p>
  
  <pre><code>&lt;root&gt;
     &lt;Yylb&gt;
        &lt;Yylb_id&gt;1&lt;/Yylb_id&gt;
        &lt;Yylb_id&gt;1&lt;/Yylb_id&gt;
     &lt;/Yylb&gt;
     &lt;Fj&gt;
        &lt;Fjxx&gt;1&lt;/Fjxx&gt;
     &lt;/Fj&gt;
     &lt;Fj&gt;
        &lt;Fjxx&gt;2&lt;/Fjxx&gt;
     &lt;/Fj&gt;
  &lt;/root&gt;
  </code></pre>