Can we extract any value from xml file

Hi all,
Can I retrive a value from .xml file in a ruby script.

If the xml file look like this.

* <?xml version="1.0" ?>
- <xyz>
- <Object Name="user_name" Type="TextField">
- <Def Type="ParentObject">
- <Description>
  <name>user_name</name>
  </Description>
  </Def>
  </Object>
- <Object Name="user_password" Type="TextField">
- <Def Type="ParentObject">
- <Description>
  <name>user_password</name>
  </Description>
  </Def>
  </Object>
- <Object Name="Login" Type="Button">
- <Def Type="ParentObject">
- <Description>
  <name>Login</name>
  </Description>
  </Def>
  </Object>
  </xyz>*

···

**
*Can i retrieve Login,user_name or user_password in my ruby code?*
**
*

Have a look at REXML, specifically it's XPath functionality.