Can we extract any value from xml file


#1

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" ?>
  • user_name
  • user_password
  • Login *

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


#2

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