The libxml-ruby gem provides appropriate bindings for the libxml2 XML toolkit provided by Gnome.
Questions tagged [libxml-ruby]
49 questions
0
votes
1 answer
How to install libxml2 version 2.9.0?
I am trying to install particular version of libxml2.
I used brew search libxml2 but it seems there is only one result is available.
Brew is installing libxml2-2.9.4 but need libxml2-2.9.0 version so i tried to install by source and followed the…

A H K
- 1,758
- 17
- 29
0
votes
1 answer
Issues installing libxml gem for ruby on windows
There are a few threads on questions similar to this, but none have proven effective. I attempted asking on the github page with no luck either.
When I attempt the standard command:
gem install libxml-ruby
I receive an error where the installer…

Sooji
- 169
- 3
- 18
0
votes
2 answers
Problem installing LibCurl + LibXML + FeedZirra on Windows XP
I am rails newbie. I am working on Windows XP.
I have this version of ruby.
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-mingw32]
I have Rails 2.3.8 installed.
I am trying to install feedzirra trying every possible way after watching the Rails…

gkolan
- 1,571
- 2
- 20
- 37
0
votes
1 answer
Error while installing libxml-ruby on windows : need libxml2
I installed Ruby x64 on windows then the development kit following these instructions mentionned in a solution I found in the forum here :
Download and install the latest Ruby for your architecture from rubyinstaller.org
Download the matching…

Atika Tika
- 1
- 1
0
votes
0 answers
How to get line number during SAX parsing with libxml in ruby?
I'm trying to count line numbers during SAX parsing for detecting errors in the XML document with some rules.
Tags like this London respond on callbacks on_start_element_ns and on_end_element_ns and tags like this
…

Chak Illysion
- 43
- 7
0
votes
1 answer
Bus Error - What causes this in Ruby?
I have run into this error 5 or 10 times over the past few years and have never found a clear answer to this problem. Here is the error:
$ rake db:migrate
/usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.9.5/lib/libxml_ruby.bundle: [BUG] Bus Error
ruby…

Lance
- 75,200
- 93
- 289
- 503
0
votes
1 answer
libxml/nokogiri not working: cannot load such file -- libxml rails
I am trying to use libxml in my rails app. However I get the error:
cannot load such file -- libxml
as you can see libxml is installed in my gems:
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
Using rake…

PSR
- 513
- 6
- 16
0
votes
1 answer
Delete an element after the element is found in Ruby using libxml
I come from C background but working on some stuff related to XML in Ruby, so, please bear with me if my question is naive.
I have one XML document. I am parsing it using libxml:
true
…

Harry_Potter
- 49
- 8
0
votes
1 answer
What is the difference between named properties and attributes in libxml-ruby?
What is the difference between
node.property("name")
and
node.attributes["name"]
According to documentation one returns "named property value" and the other "attribute value", but I do not see any difference.
One thing which might play some role…

gorn
- 5,042
- 7
- 31
- 46
0
votes
1 answer
Libxml Ruby : Do I need to manually garbage collect node sets returned by doucment#find?
The documentation for LibXML::XML::Document#find mentions that following code style needs to be used to avoid seg faults:
nodes = doc.find('/header')
nodes.each do |node|
... do stuff ...
end
Is this all I need to do? Below the example code box…

Shane
- 2,271
- 3
- 27
- 55
0
votes
1 answer
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.0
I have upgraded to Mavericks OS X and I started getting this warning.
➜ d3 git:(master) rspec
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.0
➜ d3 git:(master) ✗ nokogiri -v
Nokogiri (1.6.0)
---
warnings:…

Tyler
- 678
- 7
- 22
0
votes
0 answers
I want to omit specifying default namespace using libxml-ruby
I have questions about libxml-ruby.
There is a xml file "sample.xml".
1
…

takanopontaro
- 217
- 1
- 2
- 12
0
votes
2 answers
xpath search using libxml + ruby
I am trying to search for a specific node in an XML file using XPath. This search worked just fine under REXML but REXML was too slow for large XML docs. So moved over to LibXML.
My simple example is processing a Yum repomd.xml file, an example…

MediumDaveR
- 11
- 3
0
votes
1 answer
LIBXML-RUBY > Xpath context
Context: I'm parsing an XML file using the libxml-ruby gem. I need to query the XML document for a set of nodes using the XPath find method. I then need to process each node individually, querying them once again using the XPath find method.
Issue:…

Andrew Kirk
- 1,774
- 1
- 14
- 16
0
votes
1 answer
How can I stop parse when find the 1st element?
I would like to stop parse when find 1st element even there is more same element after that.
I use libxml,SAX on ruby.
This code show every element.
But I want to stop parse when find 1st .
Because this XML file will be huge.
Does anybody…

tknv
- 562
- 1
- 6
- 23