XPath value finder

[html/XPath value finder]


Retrieve html element values from the given document.


Keywords: html, xml, xpath

Input ports

  • document: string

    The HTML document as string we'd like run xpath queries on. Example:

    "<!doctype html><br>
    <html lang=\"en\"><br>
    <head><br>
    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\"> <br>
    ...<br>
    </html><br>
    "<br>
    ```<br>
    
  • query: string

    Receives the XPath expression to select nodes or node-sets in the documment. More: https://www.w3schools.com/xml/xpath_syntax.asp Example: "//div[@id='maindiv']"

Output ports

  • values: string[]

    Values of the nodes matching the specified query. Example: ["Content"]

  • error: {"error": string}

    Sends the error, if any.

Last updated