Questions tagged [libxml-ruby]

The libxml-ruby gem provides appropriate bindings for the libxml2 XML toolkit provided by Gnome.

49 questions
0
votes
1 answer

Ruby LibXML - If a node exists, filter based on value

I am working on the following XML: URI
aakash
  • 751
  • 5
  • 18
0
votes
1 answer

Lib Xml Ruby :Error `parse': undefined method `read' for "file.xml":String (NoMethodError)

require 'xml/libxml' require 'libxml/document' $release_date doc=LibXML::XML::Parser.io(file.xml).parse doc.root.each_element('//ABCD/xyz/') do |elem| elem.each_element do |node| node.each_element do |child| if…
Aayush
  • 1,244
  • 5
  • 19
  • 48
0
votes
1 answer

Can't find nodes in Atom with Ruby LibXML

I have the following XML Document:
LeakyBucket
  • 160
  • 1
  • 11
-1
votes
1 answer

XML parsing using Ruby for provided URL

I am trying to use Nokogiri to parse my XML which is I am getting from an URL, but I am not able to create an array of it so that it would be accessible all over the project. My XML:
born2Learn
  • 1,253
  • 5
  • 14
  • 25
1 2 3
4