I have the following sentence:
... the root of the document is counted as the beginning of the context and the anchor node marks the ending of it.
I thought I may say it as:
... the root of the document is counted as the beginning of the context and the anchor node marks its ending (or maybe its end).
However the first one seems better.
In general is "its" an equivalent for "of it"? What is the application of each?