I get the array of xml nodes using jquery with the following code
var appointments = new Array();
appointments = $($myXML).find('confirmationNumber');
Which returns me:
[
<confirmationNumber>NX0FH25P</confirmationNumber>,
<confirmationNumber>VX0MW251</confirmationNumber>,
<confirmationNumber>VB0TH252</confirmationNumber>,
<confirmationNumber>VB0MH253</confirmationNumber>
]
I want to retrieve the value of the following confirmation numbers as texts in array and I dont want to iterate the whole XML
I tried:
appointment[i].text() and appointment[i].val();
but that didn't work.