<?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: Using XPath with the XML DOM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-xpath-with-the-xml-dom/m-p/4774503#M1118876</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;Yes, I do have a solution, but I had to write my own code to do it. It works for me, but may not give you all the functionality that you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to post the result in a blog that I am trying to create withing the next week. I'll post a link here when it is done. The source code will be included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Nov 2008 15:14:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-21T15:14:55Z</dc:date>
    <item>
      <title>Using XPath with the XML DOM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-xpath-with-the-xml-dom/m-p/4774501#M1118874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have just started to use the XML DOM API. One thing I cannot see yet is an easy way to use XPath to get the value of an element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is pass an XPath expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\EDIFACT\ORDERS\NAD[2]\NAD01\NAD0102&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into a method, and get the value of the element returned to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know if there is a method of one of the DOM interfaces that would provide that kind of functionality, or am I going to have to traverse the nodes of the DOM tree manually to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 10:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-xpath-with-the-xml-dom/m-p/4774501#M1118874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T10:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using XPath with the XML DOM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-xpath-with-the-xml-dom/m-p/4774502#M1118875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read your posted question - I have the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the method find_from_path_ns (or find_from_path) is the only "xpath"-like way to get a value.&lt;/P&gt;&lt;P&gt;BUT the syntax is very limited so you cannot use all good features of xpath &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To traverse the nodes manually is (in my problem) unpractible - the xml-structures are different and it's horrible to traverse the tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need xpaths like ' //x/y[3]/z[a='MS']' . I know, the performance is not very good but for small XML-messages fast enough &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any solutions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Wolfgang Hummel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2008 14:59:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-xpath-with-the-xml-dom/m-p/4774502#M1118875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-21T14:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using XPath with the XML DOM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-xpath-with-the-xml-dom/m-p/4774503#M1118876</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;Yes, I do have a solution, but I had to write my own code to do it. It works for me, but may not give you all the functionality that you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to post the result in a blog that I am trying to create withing the next week. I'll post a link here when it is done. The source code will be included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2008 15:14:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-xpath-with-the-xml-dom/m-p/4774503#M1118876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-21T15:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using XPath with the XML DOM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-xpath-with-the-xml-dom/m-p/4774504#M1118877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;do you know if SAP improve the path specification. I would like to read XML nodes with path like Document/CstmrPmtStsRpt/OrgnlPmtInfAndSts[n] with function FIND_FROM_PATH and for the momento is imposible.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;María&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 11:46:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-xpath-with-the-xml-dom/m-p/4774504#M1118877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-27T11:46:47Z</dc:date>
    </item>
  </channel>
</rss>

