<?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 read xml file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-xml-file/m-p/1396395#M192021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first of all I don't know much about xml, but I want to extract data from an xml file at a given path.&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&amp;lt;Human&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;Employee&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Name&amp;gt;John Doe&amp;lt;/Name&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Phone&amp;gt;+32486448800&amp;lt;/Phone&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;/Employee&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;Employee&amp;gt;&lt;/P&gt;&lt;P&gt;     ...&lt;/P&gt;&lt;P&gt;   &amp;lt;/Employee&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Human&amp;gt;&lt;/P&gt;&lt;P&gt;So, the user enters the path '/Human/Eployee/Name/' in an input field, the value 'John Doe' in an other input field&lt;/P&gt;&lt;P&gt;and for example ./phone in an other input field. I have to extract the phone number, how would this best be done? I managed to get my file in a if_ixml_document. I've been looking for a method to obtain all '/Human/Eployee/Name/'-nodes, but until now, I haven't found such a thing. Does it exist or do I have to create a complex filter? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jul 2006 10:09:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-13T10:09:11Z</dc:date>
    <item>
      <title>read xml file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-xml-file/m-p/1396395#M192021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first of all I don't know much about xml, but I want to extract data from an xml file at a given path.&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&amp;lt;Human&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;Employee&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Name&amp;gt;John Doe&amp;lt;/Name&amp;gt;&lt;/P&gt;&lt;P&gt;      &amp;lt;Phone&amp;gt;+32486448800&amp;lt;/Phone&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;/Employee&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;lt;Employee&amp;gt;&lt;/P&gt;&lt;P&gt;     ...&lt;/P&gt;&lt;P&gt;   &amp;lt;/Employee&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Human&amp;gt;&lt;/P&gt;&lt;P&gt;So, the user enters the path '/Human/Eployee/Name/' in an input field, the value 'John Doe' in an other input field&lt;/P&gt;&lt;P&gt;and for example ./phone in an other input field. I have to extract the phone number, how would this best be done? I managed to get my file in a if_ixml_document. I've been looking for a method to obtain all '/Human/Eployee/Name/'-nodes, but until now, I haven't found such a thing. Does it exist or do I have to create a complex filter? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 10:09:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-xml-file/m-p/1396395#M192021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T10:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: read xml file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-xml-file/m-p/1396396#M192022</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;   Try this &lt;/P&gt;&lt;P&gt;  Function module: SCMS_STRING_TO_FTEXT.It moves XML data into itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: amit teja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 10:13:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-xml-file/m-p/1396396#M192022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T10:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: read xml file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-xml-file/m-p/1396397#M192023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I made quite a strange workaround.&lt;/P&gt;&lt;P&gt;I loaded the xml in a ixml_document and I put the search path in a table. &lt;/P&gt;&lt;P&gt;I made a filter who searched for the last node in the path, so in the above example that would be 'Name'. If a name node was found, I checked if it was the right one, by looping through the table and comparing it with the node-&amp;gt;get_parent method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there must be better ways, but this works and that's all I need atm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2006 09:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-xml-file/m-p/1396397#M192023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-20T09:29:10Z</dc:date>
    </item>
  </channel>
</rss>

