SymmetricPolynomial[2, {Subscript[x, 1], Subscript[x, 2], Subscript[x, 3], Subscript[x, 4]}]
$$\begin{align*}x_1 x_2+x_3 x_2+x_4 x_2+x_1 x_3+x_1 x_4+x_3 x_4\tag{1}\end{align*}$$
Plus @@ Subsets[ Times[Subscript[x, 1], Subscript[x, 2], Subscript[x, 3], Subscript[ x, 4]], {2}]
$$\begin{align*}x_1 x_2+x_3 x_2+x_4 x_2+x_1 x_3+x_1 x_4+x_3 x_4\tag{2}\end{align*}$$
However if I follow the formula (3) from this page.
Then, I'll not get (1), but get (4)
$$\begin{align*}\sum _{m=1}^{n-1} \prod _{k=m+1}^n x_k x_m\tag{3}\end{align*}$$
\!\(\*UnderoverscriptBox[\(\[Sum]\), \(m = 1\), \(n - 1\)]\(\*UnderoverscriptBox[\(\[Product]\), \(k = m + 1\), \(n\)]\*SubscriptBox[\(x\), \(k\)]\ \*SubscriptBox[\(x\), \(m\)]\)\) /. n -> 4
$$\begin{align*}x_2 x_3 x_4 x_1^3+x_2^2 x_3 x_4+x_3 x_4\tag{4}\end{align*}$$
Since $\prod _{k=m+1}^n x_kx_m$ may be some notations that I'm not familiar with, I'm not sure whether the formulas in the wiki's page is wrong.
Replace product in (3) with summation, then we will get the right/expected result.
\!\(\*UnderoverscriptBox[\(\[Sum]\), \(m = 1\), \(n - 1\)]\(\*UnderoverscriptBox[\(\[Sum]\), \(k = m + 1\), \(n\)]\*SubscriptBox[\(x\), \(k\)]\ \*SubscriptBox[\(x\), \(m\)]\)\) /. n -> 4
$$\begin{align*}x_1 x_2+x_3 x_2+x_4 x_2+x_1 x_3+x_1 x_4+x_3 x_4\tag{5}\end{align*}$$
Are the formulas wrong? or Is my calculating method in Mathematica wrong?
Note that some notations with the complex use of $\Pi$ and $\sum$ in symmetric polynomials
Apply[Plus,Product@@@Subsets[{x1,x2,...,xn},{i}]]
. I'm going to vote to close this, as you apparently have not really sorted out what you want. What you call expansion seems a far cry from that. $\endgroup$