<?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: How to read XML file format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-xml-file-format/m-p/6015673#M1346884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're using a web service, then you know that the web service itself returns the response as an XML string.  You should use a transformation template to convert to the corresponding tables, structures etc. in your program.  The transformation will also check for the proper formation of the XML.  You can use XSLT or SAP's version in the template.  See transaction XSLT_TOOL and ABAP statement CALL TRANSFORMATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't use the outdated methods as the others suggested - it doesn't sound like they've worked with web services or later XML technologies...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Aug 2009 13:25:59 GMT</pubDate>
    <dc:creator>brad_bohn</dc:creator>
    <dc:date>2009-08-18T13:25:59Z</dc:date>
    <item>
      <title>How to read XML file format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-xml-file-format/m-p/6015670#M1346881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Presently calling a webservice to search for customer which generates a XML file. Requirement is to check the XML file format in case of success move to next step and in case of error exit from the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file generated can have multiple formats as per input supplied. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise how the file format can be checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;anya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 11:59:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-xml-file-format/m-p/6015670#M1346881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T11:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to read XML file format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-xml-file-format/m-p/6015671#M1346882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use FM IDOC_XML_FROM_FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or check the below code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: temp_str type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate '&amp;gt;' cl_abap_char_utilities=&amp;gt;cr_lf '&amp;lt;'&amp;gt;&amp;lt;' in XML_STRING with temp_str.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xml_string is the straing variable to hold the xml .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now use xml_string to show it in texteditor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saurabh Goel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 12:10:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-xml-file-format/m-p/6015671#M1346882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T12:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to read XML file format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-xml-file-format/m-p/6015672#M1346883</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;Function module to read the XML file in SAP is &lt;STRONG&gt;TEXT_CONVERT_XML_TO_SAP&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load XML file using open dataset and read it into string variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to SAP help on DATASET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Mamta Kumari&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mamta Kumari on Aug 18, 2009 2:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 12:13:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-xml-file-format/m-p/6015672#M1346883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T12:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to read XML file format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-xml-file-format/m-p/6015673#M1346884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're using a web service, then you know that the web service itself returns the response as an XML string.  You should use a transformation template to convert to the corresponding tables, structures etc. in your program.  The transformation will also check for the proper formation of the XML.  You can use XSLT or SAP's version in the template.  See transaction XSLT_TOOL and ABAP statement CALL TRANSFORMATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't use the outdated methods as the others suggested - it doesn't sound like they've worked with web services or later XML technologies...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 13:25:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-read-xml-file-format/m-p/6015673#M1346884</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2009-08-18T13:25:59Z</dc:date>
    </item>
  </channel>
</rss>

