I’ve found Builder to work well for writing out XML files, and REXML for reading.

 

To use Builder with Watir, first you need to install gems and Builder.

 

The "Builder" project is here: http://rubyforge.org/projects/builder/

 

Installing it requires that RubyGems is installed:

http://docs.rubygems.org/read/chapter/3

 

The parent tag is written with opening and closing tags, and then the child tags are written between them.

 

I downloaded the Builder package (it has a ".gem" file extension), and saved it to a directory.

I downloaded the latest RubyGems release (zip file), unzipped it to a temporary directory (ex. "gems_temp"), and then opened a DOS console. In the console, I changed to the temporary directory (ex.

C:\gems_temp\rubygems-0.8.10\ ) and typed: "setup" at the command prompt and hit enter.

This installed Ruby Gems.

 

I installed Builder by then entering this: "gem install builder" at the command line.

 

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to