Get a random tag in xml, and then get a random value inside that random tag

Is it putting the first random var and then the second, like this?

frases.push(myXML.pais.frase1[ps][r]);