Full Xpath location

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Deepti
Posts: 4
Joined: Fri Jul 08, 2022 1:35 pm

Full Xpath location

Post by Deepti »

Hi Team,
How to get the full xpath location of a node in web author?
I need same as below example. Here the node is 'headtext'.

Please do the needful.

ex: XPath location: /n-load[1]/n-document[1]/n-docbody[1]/judicial.artifact[1]/content.syllabus[1]/head[1]/headtext[1]
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: Full Xpath location

Post by mihaela »

Hello,

To get the XPath expression of the node identified by a given offset you can use the ro.sync.ecss.extensions.api.AuthorDocumentController.getXPathExpression(int) API.

Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
Post Reply