Reading XML childnames

Hello…

I have the following structure below… How do write so that it finds the “breads” node? I know I can use attributes such as below, but I need to search for the node instead. Any ideas?

myXML.childNodes[0].childNodes*.attributes.itemtobesearchedfor;



<example>
<food>

<fruits></fruits>
<breads></breads>
<meats></meats>

</food>
</example>