Forum: Ruby Can we extract any value from xml file.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B4b238a78cd9effacc1b6a8c15d3a5bb?d=identicon&s=25 Tanushree Bhoi (Guest)
on 2006-06-05 10:20
(Received via mailing list)
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?*
**
*
*
05be5d6610e2c3f1780aa0e39e902e93?d=identicon&s=25 Farrel Lifson (Guest)
on 2006-06-05 10:29
(Received via mailing list)
Have a look at REXML, specifically it's XPath functionality.
This topic is locked and can not be replied to.