Hi Zeljko,
> http://www.germane-software.com/software/rexml/
I tried the above website and followed the example as described
which recommends REXML which is inside ruby, however it does not work.
No errors even. Do i need to change configuration or make it enable
something to use the library REXML. Any idea on this?
Could you please let me know? I did use the statements as below in the
file.
require "rexml/document"
include REXML
doc = Document.new File.new("mydoc.xml")
doc.elements.each("Inventory/section") { |element| puts
elements.attributes["name"] }
On Sep 9, 1:17 pm, Željko Filipin <[email protected]>
wrote:
> On Wed, Sep 9, 2009 at 8:54 AM, msazeez28july <[email protected]>
> wrote:
>
> > how do i read an xml file using watir scripts?
>
> Watir is _just_ a Ruby library for driving browsers. If you want to
> read/edit xml files, there are Ruby libraries for that. I am not familiar
> with xml parsing, but I think you should take a look at one of these:
>
> http://wiki.github.com/hpricot/hpricothttp://nokogiri.rubyforge.org/nokogiri/http://www.germane-software.com/software/rexml/
>
> Željko
> --http://watirpodcast.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---