I have an XPath: //*[@class='sl-count']
However, my plugin is requesting for URI path.
Are they the same? Can I just use the XPath for URI path? Or can I transform XPath into URI path?
CodePudding user response:
No, a URI path is not the same as an XPath:
- A URI (Universal Resource Identifier) identifies a document.
- An XPath identifies a part of a (XML or related) document.
Therefore, no, a tool requesting a URI is not going to accept an XPath in its place, but it might accept an XPath in addition to the URI so that it can first retrieve the document via the URI and then select a part of the document via the XPath.