@J12t @evan Consider this object:
{"object": {
"type": "Note",
"content": "<p>Some Text<div>1st div</div><div>2nd div</div></p>"
}}
If I treat HTML like JSON, I can fetch the content of the first div with JSONPath like:
"$..object[?(@.type == 'Note')].content.p.div[0]"
but, the XPath for that first div would be "//p/div[1]" (Note: 1-base, not 0-base) So, should the full query be the following?:
"$..object[?(@.type == 'Note')].content//p/div[1]"