I have an XML string in my table and I want to extract a full node from it using SQL functions, without needing to parse it in full i.e. from '<a><b><c>c1</c></b></a>' I want '<b><c>c1</c></b>' (preferably) or '<c>c1</c>'.
What little I can find that does not use Spark suggests it should work but I just get null running on DBSQL v 2026.10.
I've tried:
SELECT xpath('<a><b><c>c1</c></b></a>', '/a/b')
SELECT xpath('<a><b><c>c1</c></b></a>', '/a/b/.')
SELECT xpath('<a><b><c>c1</c></b></a>', '/a/b/node()')
SELECT xpath('<a><b><c>c1</c></b></a>', '//b')
Please help.