Hello. I'm trying to product the following output: (the values aren't important...the format is)
<FILE file_id="20140318A" file_total_amount="1945.00" file_tran_count="10">
Hello. I'm trying to product the following output: (the values aren't important...the format is)
//concatenate <FILE> line in XML fileStr =
"file_id='"+BatchLogTable.fileid+"' file_total_amount='"+num2str(myView.AmountCur,0,2,1,0)+"' file_tran_count='"+num2str(myView.RecId,0,0,1,0)+"'";
//concatenate <BATCH> line in XML batchStr =
"batch_id='"+currDateStr+"'cust_nbr='"+dialogCustNum.value()+"'merch_nbr='"+dialogMerchNum.value()+"'dba_nbr='"+dialogDBANum.value()+"'terminal_nbr='"+dialogTermNum.value()+"'batch_total_amount='"+num2str(myView.AmountCur,0,2,1,0)+"'batch_tran_count='"+num2str(myView.RecId,0,0,1,0)+"'";
//start creation of XML doc = XmlDocument::newBlank(); nodeFile = doc.createElement(fileStr
); doc.appendChild(nodeFile); nodeBatch = doc.createElement(batchStr); nodeFile.appendChild(nodeBatch); Everything after this works, so I didn't include it. If I remove the single quotes and equal signs from the fileStr and batchStr values, I don't get the error, but I need those so they can be read on the other end. Any ideas? thanks!