This is part of my code
//I get data from API
System.Net.WebClient web = new System.Net.WebClient();
System.Net.WebHeaderCollection headers = web.Headers;
headers.Add("Content-Type","application/json");
System.Text.UTF8Encoding encoder = new System.Text.UTF8Encoding();
str json = FormJsonSerializer::serializeClass(request);
System.Byte[] encodedBytes = encoder.GetBytes(json);
System.Byte[] response = web.UploadData("demoapi.smartbill.co.kr/.../",encodedBytes);
str jsonResponse = encoder.GetString(response);
result = FormJsonSerializer::deserializeObject(classNum(SYC_ResultModel_Scrap), jsonResponse);
if(result.ResultCode() == "30000")
{
values = FormJsonSerializer::deserializeCollection(classNum(List), jsonResponse, Types::Class, classStr(SYC_ResultModel_Dataset_Scrap));
value = values.getEnumerator();
if(values.elements()>0)
{
resultArray = new System.String[values.elements()+1,2]();
int arrayLoop = 1;
while(value.moveNext())
{
resultDataSet = value.current();
resultArray.Set(arrayLoop,0,resultDataSet.ISSUE_ID());
resultArray.Set(arrayLoop,1,resultDataSet.DTI_MSG());
///////DTI_MSG is the XML Data
arrayLoop++;
}
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.loadXML(resultArray.Get(1,2));
XmlDocument xslDocument = new XmlDocument();
xslDocument.load(@"C:\Users\Administrator\Desktop\Issue_Preview_XSLT");
///////Issue_preview_XSLT is the part I explained in the second part.