‎2009 Dec 01 9:24 AM
Hi
My requirement is to convert String into XML Format and that XML File i have to send as an attachment
can any one one give solution for this Problem.
Thank you
Venkatesh.K
‎2009 Dec 17 7:46 AM
Sorry, my Glassphere is out for cleaning, so i cant see how the conversion is done.
‎2009 Dec 01 9:30 AM
‎2009 Dec 01 9:51 AM
And how should the XML look like? Your question is the same as "I want to convert 5 into XML"
At least you need to give the xsd or the tags which need to be used.
‎2009 Dec 17 7:00 AM
hi,
i m filling the itab first and converting to xml
itab contaning these data
GS_PERSON-CUST_ID = '3'.
GS_PERSON-FIRSTNAME = 'Bill'.
GS_PERSON-LASTNAME = 'Gates'.
APPEND GS_PERSON TO GT_PERSON.
GS_PERSON-CUST_ID = '4'.
GS_PERSON-FIRSTNAME = 'Frodo'.
GS_PERSON-LASTNAME = 'Baggins'.
APPEND GS_PERSON TO GT_PERSON.
after conversion data is coming like that
#<?xml version="1.0" encoding="utf-16"?>
<CUSTOMERS>
<item>
<customer_id>0003</customer_id>
<first_name>Bill</first_name>
<last_name>Gates</last_name>
</item>
<item>
<customer_id>0004</customer_id>
<first_name>Frodo</first_name>
<last_name>Baggins</last_name>
</item>
</CUSTOMERS>
but errors are 1) # is coming at the first
2)for 'encoding="utf-16"?>', it is not coming perfectly, some other data (iso-8859-1) should come here
can anybody plz solve it.
regards,
viki
‎2009 Dec 17 7:46 AM
Sorry, my Glassphere is out for cleaning, so i cant see how the conversion is done.
‎2009 Dec 17 8:02 AM