I am looking for a self-contained (elementary, that is, at the "undergraduate algebra level") proof of the the fact that any one-dimensional Noetherian UFD is a PID. Here one dimensional means that every nonzero prime ideal is maximal.
(Note: I have looked at the similar questions on this website but don't find them particularly useful).
Usually you would say that a one-dimensional noetherian UFD is a Dedekind domain and for Dedekind domains UFD and PID is the same thing. Let us recap the proof on an elementary level:
First of all we show that every prime ideal is principal: Let $0 \neq \mathfrak p$ be a prime ideal and $0 \neq f \in \mathfrak p$. Since we have an UFD, we can factorize $$f = p_1^{r_1} \dotsb p_n^{r_n}$$ with the $p_i$ being irreducible, hence prime, since we have an UFD. Since $\mathfrak p$ is prime, we deduce $p_i \in \mathfrak p$ for some $i$. So we have a chain of prime ideals: $(0) \subsetneq (p_i) \subset \mathfrak p$. From dimension one we deduce $\mathfrak p = (p_i)$ is principal. So far we have shown that any non-trivial prime ideal (precisely the maximal ideals) of our ring is principal.
To show the result, we only have to show that $(f,g)$ is principal, since we can argue by induction due to the fact that any ideal is a priori finitely generated. Let
$$f = p_1^{r_1} \dotsb p_n^{r_n}, ~ g = p_1^{s_1} \dotsb p_n^{s_n}$$
The natural candidate is $d := p_1^{e_1} \dotsb p_n^{e_n}$ with $e_i = \min \{r_i,s_i\}$. We want to show $(f,g)=(d)$, which is equivalent to $(\frac{f}{d},\frac{g}{d}) = (1)$.
By our choice $d$ has the following property: For any $i$ we have that $\frac{f}{d}$ or $\frac{g}{d}$ does not admit the factor $p_i$. So there is no $(p_i)$ which contains the ideal $(\frac{f}{d},\frac{g}{d})$. But we have shown that any maximal ideal of our ring is of the form $(p_i)$. Hence $(\frac{f}{d},\frac{g}{d})$ is not contained in a maximal ideal, thus we deduce $(\frac{f}{d},\frac{g}{d}) = (1)$.
Edit: Maybe one should point out the critical argument: To show that a UFD is a PID, we only have to show that the greatest common divisor of two elements can be written with Bezout coefficients (This is what $(f,g)=(d)$ precisely states). After cancelling the gcd, we can assume that our two elements $f,g$ have no common irreducible factor. From this we deduce that there is no principal prime ideal containing both $f$ and $g$. So any prime ideal containing $(f,g)$ must be non-principal. And then we use that in a 1-dimensional UFD any prime ideal is principal.