An oxoacid molecule contains the structure X−O−H, where other atoms or atom groups can be connected to the central atom X.
If, however, the electronegativity of X is low, then the compound is dissociated to ions according to the latter chemical equation, and XOH is an alkaline hydroxide.