you may want to look at xml unit - http://xmlunit.sourceforge.net/


----- Original Message ----- 
From: "Lana" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, June 05, 2007 7:13 PM
Subject: Re: [Wtr-general] How would you approach verification of data in 
*xml* format with Watir?


> 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
> 


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

Reply via email to