2009 Dec 23 10:26 AM
Hi All,
I am creating program for generate XML file program in 4.6.
program working fine in 4.6.
its shows output like below:
with <item> tag
<?xml version="1.0" ?>
- <ConfirmationOfCancellationOfEaad>
- <ATTRIBUTES>
- <item>
<DATEANDTIMEOFVALIDATIONOFCANC>A</DATEANDTIMEOFVALIDATIONOFCANC>
</item>
- <item>
<DATEANDTIMEOFVALIDATIONOFCANC>B</DATEANDTIMEOFVALIDATIONOFCANC>
</item>
</ATTRIBUTES>
</ConfirmationOfCancellationOfEaad>
I do not want <item> </item> tag in XML. so how to remove from xml..
without <item> tag
- <ConfirmationOfCancellationOfEaad>
- <ATTRIBUTES>
<DATEANDTIMEOFVALIDATIONOFCANC>A</DATEANDTIMEOFVALIDATIONOFCANC>
<DATEANDTIMEOFVALIDATIONOFCANC>B</DATEANDTIMEOFVALIDATIONOFCANC>
</ATTRIBUTES>
</ConfirmationOfCancellationOfEaad>
give some idea for that....
Thanks
Jigar
Edited by: JIGAR BHATT on Dec 23, 2009 11:39 AM
Hi All,
I am creating program for generate XML file program in 4.6.
program working fine in 4.6.
its shows output like below:
with <item> tag
<?xml version="1.0" ?>
- <ConfirmationOfCancellationOfEaad>
- <ATTRIBUTES>
- <item>
<DATEANDTIMEOFVALIDATIONOFCANC>A</DATEANDTIMEOFVALIDATIONOFCANC>
</item>
- <item>
<DATEANDTIMEOFVALIDATIONOFCANC>B</DATEANDTIMEOFVALIDATIONOFCANC>
</item>
</ATTRIBUTES>
</ConfirmationOfCancellationOfEaad>
I do not want <item> </item> tag in XML. so how to remove from xml..
without <item> tag
- <ConfirmationOfCancellationOfEaad>
- <ATTRIBUTES>
<DATEANDTIMEOFVALIDATIONOFCANC>A</DATEANDTIMEOFVALIDATIONOFCANC>
<DATEANDTIMEOFVALIDATIONOFCANC>B</DATEANDTIMEOFVALIDATIONOFCANC>
</ATTRIBUTES>
</ConfirmationOfCancellationOfEaad>
give some idea for that....
Thanks
Jigar
Edited by: JIGAR BHATT on Dec 23, 2009 11:39 AM
2009 Dec 23 11:29 AM
2009 Dec 23 11:41 AM
Hi Ksd,
I have already check this link... this one is working in 4.7..
i am using 4.6...
so please give me some more idea for this issue...
Thanks
JIgar
2009 Dec 23 12:32 PM
Watch package SIXML
You can manage XML with objects. There are much examples
2009 Dec 23 1:56 PM
Hi Jorge,
Thanks for the reply.
This SIXML Package shows how to read an XML document from a file.
but I want to create file in xml...
so this one is not working...
Give me some more idea...
Thanks
Jigar
2009 Dec 23 3:19 PM
Hi All,
Could you give me solution for "remove <item> tag from XML" issue...
Thanks
JIgar
2009 Dec 24 8:32 AM
2010 Jan 05 6:44 AM
2023 May 18 8:07 AM
Here is another solution,
Hex value for string <item> is '3C6974656D3E'
and for string </item> is '3C2F6974656D3E'
with trailing new line hex value is '0A'.
Some changes in this loop
LOOP AT it_xml INTO xml_tab-d.
REPLACE ALL OCCURRENCES OF '3C6974656D3E0A' IN xml_tab-d WITH ''.
REPLACE ALL OCCURRENCES OF '3C2F6974656D3E0A' IN xml_tab-d WITH ''.
APPEND xml_tab.
ENDLOOP.
Hope this helps,
Thanks
Sitesh Sawant.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |