Inserting data got from Creator application into CRM

Inserting data got from Creator application into CRM

I got data from my creator application(getleadsfromcrm)  through api .Then I want to insert them into CRM by insertRecords(CRM api method).But their xml formats are different.

How can I achieve it.please help me .Thanks !I tried it as follows:

first:I get data from creator application getleadsfromcrm,

thisurl = ("http://creator.baihui.com/api/xml/getleadsfromcrm/view/leads_view/apikey=2e16c27cff734a56b029f35e616f0008&ticket=2b3c5bb3e29bb7309af75a40d5794a82");
getXml = map();
str = postUrl(thisurl, getXml,false);
stringdata = str.get("responseText");
xmldata = stringdata.toXML();



the result is::

<response>

<records>

<record>

<column name="leadsName">
<value>ww</value>
</column>

<column name="company">
<value>qq</value>
</column>

<column name="telephone">
<value>343434</value>
</column>

<column name="email">
<value>ee@163.com</value>
</column>
</record>





















second :I need to insert the data above into CRM through api method insertRecords.

And I think between first and second ,the data(xml) wheather should be transfered.


thanks a lot!