Programmer's Guide > Interfaces > ANode interface > contextPath method
  
contextPath method
contextPath returns a DOMStringList that contains possible context paths to make the target Node valid at the point indicated by this Node. If one of the paths returned is an empty string, the target Node can be inserted without any Node being added.
contextPath(target, depth, maxpaths)
Parameters
Nodetarget
The Node to which the context paths are to be calculated.
unsigned intdepth
Specifies the maximum tag nesting depth of the paths returned.
unsigned intmaxpaths
Specifies the maximum number of paths at each depth to return. If depth is 5, and maxpaths is 50, as many as 250 total paths could be returned. If more paths than maxpaths exist at a given depth, only the first maxpaths paths are returned, with no indication that more paths exist.
Returns
DOMStringList. Returns the context paths from the point specified by this Node to the target.