reading an xml value in groovy
===

i have checked around the site and although many people are looking for similar solutions, a solution to my specific problem has not been posted, nor has a similar question been asked.

i have an XML that looks like this:

    <root>
     <item1>TEXT A</item1>
     <item2>TEXT B</item2>
     <subs>
      <sub1>
       <thing property1='valueA' property2='valueB'>
        <foo>fooA</foo>
      </sub1>
      <sub2>
       <thing property1='valueC' property2='valueD'>
        <foo>fooA</foo>
      </sub2>
     </subs>
    </root>

i want to get "TEXT B"

i am thinking 

    def xml = new XmlParser().parseText(MY_XML_FILE)

but now how do i access "TEXT B" ??

    xml.root.item2.text

does not work. any thoughts?