Let $f(x) = x\tan x-1$. Let's consider when $f(x)=0$.
In the neighbourhood of every $k\pi$, where k is an integer, there should be a solution for $f(x)=0$.
Assuming $x_0$ approximately satisfies $f(x)$, is it correct that the next solution can be approximated to be at $x_0 + \pi - g(x)$ ?
If so, how can I find $g(x)$ to approximate the position of the next root to an arbitrary precision?
You are looking for the zero's of function $$f(x) = x\tan( x)-1$$ which are close to multiples of $\pi$.
I think that it is better to consider instead the problem of the zero's of function $$g(x) = x\sin( x)-\cos(x)$$
What can easily be done is to expand $g(x)$ as a Taylor series around $x=k \pi$ and to proceed later to a series resversion.
This would give $$\color{blue}{x_{(k)}=q+\frac{1}{q}-\frac{4}{3 q^3}+\frac{53}{15 q^5}-\frac{1226}{105 q^7}+\frac{13597}{315 q^9}-\frac{1531127}{8960 q^{11}}+\frac{84665251}{120960 q^{13}}+O\left(\frac{1}{q^{15}}\right)}$$ where $\color{blue}{q=k \pi}$.
Using the above truncated series (which could easily be extended), below are reproduced some results $$\left( \begin{array}{ccc} k & \text{approximation} & \text{exact solution} \\ 1 & 3.4256889465952269449 & 3.4256184594817281465 \\ 2 & 6.4372981816942647058 & 6.4372981791719471204 \\ 3 & 9.5293344053667719230 & 9.5293344053619636030 \\ 4 & 12.645287223856678278 & 12.645287223856643104 \\ 5 & 15.771284874815881554 & 15.771284874815882047 \\ 6 & 18.902409956860023945 & 18.902409956860024151 \\ 7 & 22.036496727938565037 & 22.036496727938565083 \\ 8 & 25.172446326646664703 & 25.172446326646664714 \\ 9 & 28.309642854452012361 & 28.309642854452012364 \\ 10 & 31.447714637546233552 & 31.447714637546233553 \\ 11 & 34.586424215288923664 & 34.586424215288923664 \end{array} \right)$$