A method, program, and apparatus for providing a description of current position
in an electronic document are provided. The invention first comprises parsing the
electronic document into a parse tree. When the system receives a command from
the user requesting current position in the electronic document, an algorithm performs
a walk up the parse tree, from the current position to the root of the document.
A position response, containing nodes in the walk up the parse tree, is constructed
by the algorithm and reported to the user.