Page 1 of 1

Full Xpath location

Posted: Fri Jul 08, 2022 2:06 pm
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]

Re: Full Xpath location

Posted: Fri Jul 08, 2022 2:47 pm
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