Closed GoogleCodeExporter closed 9 years ago
I tried the following code and it worked. There should not be any confusion on
what
Document class to use if you use full name along with module name.
require 'firewatir'
require 'rexml/document'
doc = REXML::Document.new("<xml><tag1
name='tag1'></tag1></xml>")
doc.elements.each("xml/tag1") { |element|
puts element.attributes["name"]
}
Code Output: tag1
The output is correct as it is using REXML Document and not Firewatir document.
Please you full qualifier name while accessing document class.
Original comment by ang...@gmail.com
on 27 Apr 2007 at 5:20
I tried the following code and it worked. There should not be any confusion on
what
Document class to use if you use full name along with module name.
require 'firewatir'
require 'rexml/document'
doc = REXML::Document.new("<xml><tag1
name='tag1'></tag1></xml>")
doc.elements.each("xml/tag1") { |element|
puts element.attributes["name"]
}
Code Output: tag1
The output is correct as it is using REXML Document and not Firewatir document.
Please you full qualifier name while accessing document class.
Original comment by ang...@gmail.com
on 27 Apr 2007 at 5:21
Original comment by ang...@gmail.com
on 4 Oct 2007 at 7:28
Original issue reported on code.google.com by
spino...@gmail.com
on 26 Apr 2007 at 12:46