REXML logging is already in the examples directory. If there is sufficient interest and Bret and Paul don’t object, I could include an example using Builder in the examples directory.

 

-Jonathan

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark
Sent: August 3, 2005 3:08 PM
To: [email protected]
Subject: RE: [Wtr-general] XML Logging with Builder

 

Do you have any good example on using Builder and REXML you could share?

 

Thanks,

 

--Mark


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Kohl
Sent: Wednesday, August 03, 2005 12:18 PM
To: [email protected]
Subject: [Wtr-general] XML Logging with Builder

 

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