<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Delete XML Tag in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-xml-tag/m-p/8024532#M1609204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's an xstring, you could try to convert it into a DOM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SDIXML_XML_TO_DOM'
    EXPORTING
      xml           = lv_serializied_stream
    IMPORTING
      document      = lo_if_xml_document
    EXCEPTIONS
      invalid_input = 1
      OTHERS        = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...and then navigate down where required and work with "IF_IXML_NODE&lt;SUB&gt;REMOVE_NODE" and "IF_IXML_NODE&lt;/SUB&gt;REMOVE_CHILD". I'm not sure whether you can use this, because I'm not aware of the dynamics and complexity of your XML stream, but this sure would be a possibility in general.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jul 2011 13:51:37 GMT</pubDate>
    <dc:creator>Lukas_Weigelt</dc:creator>
    <dc:date>2011-07-18T13:51:37Z</dc:date>
    <item>
      <title>Delete XML Tag</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-xml-tag/m-p/8024531#M1609203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my program , I am reading am XML string and i want to delete all  the occurences of the XML tag below:&lt;/P&gt;&lt;P&gt;      &amp;lt;desc&amp;gt;&lt;/P&gt;&lt;P&gt;                        &amp;lt;text xmlns:xft-xliff="http://www.xfa.org/schema/xfa-xliff/1.0/" name="Schema Annotation" xft-xliff:id="N897"&amp;gt;d3153e10ea5711dac5bb001279d7d2c2&amp;lt;/text&amp;gt;&lt;/P&gt;&lt;P&gt;                     &amp;lt;/desc&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to write the below way but it doesn't work .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; REPLACE ALL OCCURRENCES OF '&amp;lt;desc&amp;gt;&lt;/P&gt;&lt;P&gt;\&amp;lt;[[:alnum:]]+\&amp;gt; &amp;lt;desc&amp;gt;'  IN cp_xml_string WITH ' 'IGNORING CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide any input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 12:07:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-xml-tag/m-p/8024531#M1609203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-18T12:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Delete XML Tag</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-xml-tag/m-p/8024532#M1609204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's an xstring, you could try to convert it into a DOM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SDIXML_XML_TO_DOM'
    EXPORTING
      xml           = lv_serializied_stream
    IMPORTING
      document      = lo_if_xml_document
    EXCEPTIONS
      invalid_input = 1
      OTHERS        = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...and then navigate down where required and work with "IF_IXML_NODE&lt;SUB&gt;REMOVE_NODE" and "IF_IXML_NODE&lt;/SUB&gt;REMOVE_CHILD". I'm not sure whether you can use this, because I'm not aware of the dynamics and complexity of your XML stream, but this sure would be a possibility in general.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 13:51:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-xml-tag/m-p/8024532#M1609204</guid>
      <dc:creator>Lukas_Weigelt</dc:creator>
      <dc:date>2011-07-18T13:51:37Z</dc:date>
    </item>
  </channel>
</rss>

