How can i determine if first occurance (element 0) of contains text "No Errors"

```
if ($(xml).find('errors')[0].text() == 'No Errors') 
{
  do something
}

```

!!! edit !!!

```
 found it...

 if ($(xml).find('error').first().text() == 'No errors') 

```