title: JSON to XML conversion without changing the sequence
body: <p>I am using the below code to convert json to xml of multiple XML files with different JSON structures. </p>
  
  <pre><code>String toXmlRequest = fullRequest.toString();               
  JSONObject jsonObj = new JSONObject(toXmlRequest);              
  String XmlRequest = XML.toString(jsonObj);
  System.out.println(XmlRequest);
  </code></pre>
  
  <p><strong>Input</strong></p>
  
  <pre><code>     {
        "EnrollmentRequest":
          {
            "data": 
              {
                "commonDataContext":
                     {
                        "requestId": "ADA12131",
                        "clientId": "ABCDEF",
                        "timestamp":"2013-12-13T11:10:00.715-05:00"
                     },
                 "cardNumber" : "123456789012345" ,
                 "firstName" : "John" ,
                 "lastName" : "Smith" ,
                 "email" : "JohnSmith@g.com" ,
                 "enrollStatus" : "E" , 
                 "pathEnroll" : "NewAcct",
                 "cardSavedIndicator" : "Y"
            }
          }
       }
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <pre><code>      &lt;EnrollmentRequest&gt;
            &lt;data&gt;
                &lt;firstName&gt;John&lt;/firstName&gt;
                &lt;lastName&gt;Smith&lt;/lastName&gt;
                &lt;commonDataContext&gt;
                      &lt;clientId&gt;ABCDEF&lt;/clientId&gt;
                      &lt;requestId&gt;ADA12131&lt;/requestId&gt;
                      &lt;timestamp&gt;2013-12-13T11:10:00.715-05:00&lt;/timestamp&gt;
                &lt;/commonDataContext&gt;
                &lt;pathEnroll&gt;NewAcct&lt;/pathEnroll&gt;
                &lt;enrollStatus&gt;E&lt;/enrollStatus&gt;
                &lt;cardSavedIndicator&gt;Y&lt;/cardSavedIndicator&gt;
                &lt;cardNumber&gt;123456789012345&lt;/cardNumber&gt;
                &lt;email&gt;JohnSmith@g.com&lt;/email&gt;
            &lt;/data&gt;
        &lt;/EnrollmentRequest&gt;
  </code></pre>
  
  <p>The sequence of the output is getting changed. It is not able to keep the actual sequence. Is there any way this can be kept intact. </p>