# Reading XML childnames

**URL:** <https://forum.kirupa.com/t/reading-xml-childnames/204579>\
**Category:** Uncategorized\
**Created:** [October 21, 2006, 12:22am UTC](https://forum.kirupa.com/t/reading-xml-childnames/204579 "2006-10-21T00:22:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![waynebrady](https://avatars.discourse-cdn.com/v4/letter/w/eb8c5e/32.png) [@waynebrady](https://forum.kirupa.com/u/waynebrady)\
**Post date:** [October 21, 2006, 12:22am UTC](https://forum.kirupa.com/t/reading-xml-childnames/204579/1 "2006-10-21T00:22:21Z")

</div>

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;

```auto

<example>
<food>

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

</food>
</example>

```
