title: How to convert json to xml using xslt
body: <p>How would you convert JSON to XML?</p>
  
  <p>Consider:</p>
  
  <pre><code>&lt;sampleTag&gt;
  {
    "Order": {
      "InvestmentAccount": { "AccountNumber": "10" },
      "Parcel": {      
        "Limit": "0",
        "ExpiryDate": "1900-01-01T00:00:00",
        "Asset": [
      {        
          "Open": "25.15",
          "High": "25.15",
          "Low": "25.11",
          "Close": "25.87"
        }
      {        
          "Open": "25.15",
          "High": "25.15",
          "Low": "25.11",
          "Close": "25.87"
        }]
      },
  
      "OrderDate": "2012-10-11T21:46:03.6489906+11:00",
  
    }
  }
  &lt;/sampleTag&gt;
  </code></pre>
  
  <p>After transformation, the document is as follows:</p>
  
  <pre><code>&lt;Order&gt;
      &lt;InvestmentAccount&gt;
          &lt;AccountNumber&gt;10&lt;/AccountNumber&gt;
      &lt;/InvestmentAccount&gt;
      &lt;Parcel&gt;
          &lt;Limit&gt;0&lt;/Limit&gt;
          &lt;ExpiryDate&gt;1900-01-01T00:00:00&lt;/ExpiryDate&gt;
          &lt;Asset&gt;
              &lt;Open&gt;25.15&lt;/Open&gt;
              &lt;High&gt;25.15&lt;/High&gt;
              &lt;Low&gt;25.11&lt;/Low&gt;
              &lt;Close&gt;25.87&lt;/Close&gt;
          &lt;/Asset&gt;
          &lt;Asset&gt;
              &lt;Open&gt;25.15&lt;/Open&gt;
              &lt;High&gt;25.15&lt;/High&gt;
              &lt;Low&gt;25.11&lt;/Low&gt;
              &lt;Close&gt;25.87&lt;/Close&gt;
          &lt;/Asset&gt;
      &lt;/Parcel&gt;
      &lt;OrderDate&gt;2012-10-11T21:46:03.6489906+11:00&lt;/OrderDate&gt;
  &lt;/Order&gt;
  </code></pre>