Skip to main content
Version: v0.0.3

Function: joinPath()

joinPath(parent, child): string

Append a child step to an XPath-style location string.

Parameters

parent

string

The parent path, e.g. /Message/Body.

child

string

The child element name, e.g. NewRx.

Returns

string

The joined path, e.g. /Message/Body/NewRx.

Example

joinPath("/Message/Body", "NewRx"); // "/Message/Body/NewRx"