- What is an XPath and why do I need it?
- XPath (XML Path Language) is a standard syntax for addressing parts of an XML document. It is widely used in XSLT transformations, XML parsers, Selenium web testing, and API integrations. XPath expressions like /catalog/book/@id let you pinpoint specific nodes without parsing the whole document manually.
- What is a JSONPath?
- JSONPath is the JSON equivalent of XPath. A JSONPath expression like $.users[0].email selects the email field of the first user in a JSON document. It is commonly used in API testing tools like Postman and Karate.
- How does auto-detection work?
- The tool checks whether your input starts with { or [ (JSON) or < (XML) and applies the appropriate path extraction algorithm. A colored badge below the editor shows what was detected.
- What types of paths are extracted from XML?
- The extractor produces element paths like /catalog/book/title and attribute paths like /catalog/book/@id. Each path is labeled with a type badge (Element or Attribute) for clarity.
- What types of paths are extracted from JSON?
- The extractor produces full JSONPath expressions for every node — including nested objects ($.user), array elements ($.users[0]), and leaf values ($.users[0].email). Each path shows its type (Object, Array, or Value).
- Can I share the extracted path list?
- Yes. Click "Send to Server" after extracting paths to get a 4-digit ID and QR code. Recipients can retrieve the full path list at sniplint.in/clipboard using the ID or by scanning the QR code.