[wtr-general] Re: How to read an xml file using watir scripts

2009-09-11 Thread msazeez28july

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 zeljko.fili...@wa-research.ch
wrote:
 On Wed, Sep 9, 2009 at 8:54 AM, msazeez28july sabdulkha...@gmail.com
 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 watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to read an xml file using watir scripts

2009-09-10 Thread msazeez28july

Hi Zeljiko,
  Thanks lot for your immediate reply, I am looking at the
links you have provided

Regards
Syed

On Sep 9, 1:17 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Wed, Sep 9, 2009 at 8:54 AM, msazeez28july sabdulkha...@gmail.com
 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 watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to read an xml file using watir scripts

2009-09-09 Thread Željko Filipin
On Wed, Sep 9, 2009 at 8:54 AM, msazeez28july sabdulkha...@gmail.com
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/hpricot
http://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 watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to read an xml file using watir scripts

2009-09-09 Thread Raveendran P
Hi,

Hpricot -- This article will help you
http://markmail.org/message/x56irjeq2bv37z23

Thanks

On Wed, Sep 9, 2009 at 12:24 PM, msazeez28july sabdulkha...@gmail.comwrote:


 Hi,
  We have an .NET application for which the UI labels can be
 configured/changed using an xml file provided inside code. There are
 xml tags inside the file as below
 data name=CompanyText xml:space=preserve
valueCompany/value
  /data
 If i change the above value tag from Company to FIRM, then the
 application UI would change the label from company to FIRM. There are
 lot of other tags like DepartmentText, PasswordTextetc exist in
 that xml file
 This needs to be automated like watir script should read this file to
 the specific xml tag and change its value tag to desired new value and
 verify in the UI for the same.

 I need to know, how do i read an xml file using watir scripts?
 Do we have any class in watir ?

 Could you please help me on this
 Thanks in advance.

 Regards
 Syed
 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---