Function: scriptPosition()
scriptPosition(
path):ScriptPosition
Build a ScriptPosition from an XPath-style location string.
Parameters
path
string
XPath-style location, e.g. /Message/Header/To.
Returns
A frozen positional context.
Example
const pos = scriptPosition("/Message/Body/NewRx/Patient");
pos.path; // "/Message/Body/NewRx/Patient"