[wtr-general] Re: xml handling

2009-03-30 Thread Vikas Tulashyam
Hi, Thankyou very much for your reply. On Mar 30, 1:48 pm, LFIdnl wrote: > doc.elements.each("//TestObject[Identifier='Test_Field1']") { |el| >   puts el.elements['Locator'].text > > } > > On 30 мар, 11:28, Vikas Tulashyam wrote: > > > > > > > Hi Thanks for the reply.. I want to get the value o

[wtr-general] Re: xml handling

2009-03-30 Thread LFIdnl
doc.elements.each("//TestObject[Identifier='Test_Field1']") { |el| puts el.elements['Locator'].text } On 30 мар, 11:28, Vikas Tulashyam wrote: > Hi Thanks for the reply.. I want to get the value of the tag > in any matching identifier. I am creating a function and passing the > value of the

[wtr-general] Re: xml handling

2009-03-30 Thread Vikas Tulashyam
Hi Thanks for the reply.. I want to get the value of the tag in any matching identifier. I am creating a function and passing the value of the and I want to return the value of the . e.g. --> Test_Field1 TextBox1 TextField Here, I want to pass "Test_Field1" and method should return

[wtr-general] Re: xml handling

2009-03-30 Thread LFIdnl
doc.elements.each('//TestObject/Identifier') { |el| puts el.text } doc.elements.each('//TestObject/Locator') { |el| puts el.text } On 30 мар, 10:44, Vikas Tulashyam wrote: > Hi, > I want to read a xml file. Here is the my XML file--> > > > - >   Test_Field1 >   TextBox1 >   TextField >  

[wtr-general] Re: xml handling

2009-03-29 Thread LFIdnl
xml.elements.each("ObjectMap/Locator"){ |element| puts element.text } xml.elements.each("ObjectMap/Identifier"){ |element| puts element.text } On 30 мар, 10:44, Vikas Tulashyam wrote: > Hi, > I want to read a xml file. Here is the my XML file--> > > > - >   Test_Field1 >   TextBox1 >   TextFi