AnsweredAssumed Answered

How to get NodeRef from XPath in Java?

Question asked by mbel on Jan 24, 2017
Latest reply on Jan 24, 2017 by mrks.js1

Hello,

 

I have the following XPath as String which was previously converted as:

String xpath= this.nodeService.getPath(nodeRef).toPrefixString(namespaceService);

xpath is = > /app:company_home/st:sites/cm:test-site/cm:documentLibrary/cm:test.pdf

 

How I can convert the above Xpath to NodeRef?

 

Thank you in advance.

Outcomes