Thank you for right direction, this helped me to get started:
-----------------------------------------------------------------------------------------
#includes
require 'watir'
require "rexml/document"
include Watir
include REXML 


doc = Document.new File.new("station.xml")
root = doc.root
puts root.elements["STATION_BROADCASTER"]
=====
result:
<STATION_BROADCASTER>username</STATION_BROADCASTER> 
=========================================
But I seems can't find how to get actual value of element 
'STATION_BROADCASTER', as there is no attribute, any suggestions?

this is my xml:
<LIVE365_STATION_INFO>
  <STATION_BROADCASTER>username</STATION_BROADCASTER> 
  
Thank You,
Lana
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to