Suppose $A$ is a PID, with quotient field $k$. Note here that I'm not assuming that $A$ itself is a valuation ring.
Is it true that $A_\mathfrak{p}$ is a valuation ring in $k$ for any prime $\mathfrak{p}\subset A$, and any valuation subring $B\supseteq A$ of $k$ is equal to $A_\mathfrak{p}$ for some prime ideal $\mathfrak{p}\subseteq A$?
My thoughts were something like this: If $B$ is a valuation ring containing $A$, the let $\mathfrak{m}$ be maximal in $B$. Put $\mathfrak{p}=\mathfrak{m}\cap A$. If $x\in A-\mathfrak{p}$, then $x\in B-\mathfrak{m}$, hence $x$ is a unit in $B$. Now $A_\mathfrak{p}\subseteq B$. As a valuation ring, $B$ is a local ring, and so any arbitrary element has form $x/y\in B$, for $x,y\in B$, and $y\notin\mathfrak{m}$. Since $k$ is the field of fractions, taking $x,y\in A$ with $x\notin\mathfrak{p}$ shows $x/y\in A_\mathfrak{p}$, so $A_\mathfrak{p}=B$. Is this argument correct?
On the other hand, if $\mathfrak{p}$ is a prime ideal of $A$, then I have a tower $A\subset A_\mathfrak{p}\subset k$. Is there a good way to conclude $A_\mathfrak{p}$ is a valuation ring in $k$?
I'm motivated to ask this question since I've seen similar ideas expressed when $A$ is a valution ring, but does this still work when $A$ is assumed to be a PID? If possible, I would appreciate seeing a correct formulation of the proof. Many thanks!