Unfortunately there is no standard way to input an overbrace construct in MathML. In LaTeX you can say
$\overbrace{(x_1, x_2, \ldots, x_n)}^{\text{$n$ elements}}$
Its tbook representation is
<mover> <m>(x_1, x_2, …, x_n)</m> <mover> <mo>⏞</mo> <mrow> <mi>n</mi> <mtext> elements</mtext> </mrow> </mover> </mover>
The underbrace works accordingly.