<?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 How to get NodeRef from XPath in Java? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-noderef-from-xpath-in-java/m-p/4096#M1728</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;I have the following XPath as String which was previously converted as:&lt;/P&gt;&lt;P&gt;String xpath= this.nodeService.getPath(nodeRef).toPrefixString(namespaceService);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;xpath is = &amp;gt;&lt;/SPAN&gt;&amp;nbsp;/app:company_home/st:sites/cm:test-site/cm:documentLibrary/cm:test.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I can convert the above Xpath to NodeRef?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2017 12:57:38 GMT</pubDate>
    <dc:creator>mbel</dc:creator>
    <dc:date>2017-01-24T12:57:38Z</dc:date>
    <item>
      <title>How to get NodeRef from XPath in Java?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-noderef-from-xpath-in-java/m-p/4096#M1728</link>
      <description>Hello,I have the following XPath as String which was previously converted as&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;tring xpath= this.nodeService.getPath(nodeRef).toPrefixString(namespaceService);xpath is = &amp;gt;&amp;nbsp;/app:company_home/st:sites/cm:test-site/cm:documentLibrary/cm:test.pdfHow I can convert the above Xpath to NodeRef?Thank you i</description>
      <pubDate>Tue, 24 Jan 2017 12:57:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-noderef-from-xpath-in-java/m-p/4096#M1728</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2017-01-24T12:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get NodeRef from XPath in Java?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-noderef-from-xpath-in-java/m-p/4097#M1729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afaik there is no method that does this kind of 'conversion' -&amp;gt; My best guess is to use the xpath in a searchService query similar to what was posted here: &lt;A href="https://migration33.stage.lithium.com/thread/170903"&gt;SearchService.selectNodes(...) example&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 13:07:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-noderef-from-xpath-in-java/m-p/4097#M1729</guid>
      <dc:creator>mrks_js1</dc:creator>
      <dc:date>2017-01-24T13:07:09Z</dc:date>
    </item>
  </channel>
</rss>

