The libxml-ruby gem provides appropriate bindings for the libxml2 XML toolkit provided by Gnome.
Questions tagged [libxml-ruby]
49 questions
75
votes
8 answers
Convert a Nokogiri document to a Ruby Hash
Is there an easy way to convert a Nokogiri XML document to a Hash?
Something like Rails' Hash.from_xml.

Ivan
- 97,549
- 17
- 50
- 58
16
votes
7 answers
libxml-ruby: Failed to build gem native extension
I'm trying to install libxml-ruby.
I have installed libxml2, libxslt and coreutils
I have also read other posts regarding the issue but none solved it for me.
brew list…

Cjmarkham
- 9,484
- 5
- 48
- 81
7
votes
3 answers
can't install libxml-ruby for rails 2.3.14
I'm getting this error when executing 'bundle install':
..........
Installing libxml-ruby (2.7.0)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/ubuntu/.rvm/rubies/ruby-1.8.7-p374/bin/ruby extconf.rb…

user2997249
- 73
- 1
- 3
5
votes
1 answer
gem install libxml-ruby: fatal error: 'plist/Node.h' file not found
Trying:
sudo gem install libxml-ruby -n /usr/local/bin
Output:
Password:
Building native extensions. This could take a while...
ERROR: Error installing libxml-ruby:
ERROR: Failed to build gem native extension.
current directory:…

Cœur
- 37,241
- 25
- 195
- 267
5
votes
5 answers
libxml-ruby failed to load at x86_64
We are having problem with libxml-ruby gem at the server side
Possible because it uses x86_64 architecture:
$ uname -a
Linux ip-10-228-171-64 2.6.21.7-2.fc8xen-ec2-v1.0 #1 SMP Tue Sep 1 10:25:30 EDT 2009 x86_64 GNU/Linux
require 'libxml'
LoadError:…

Bogdan Gusiev
- 8,027
- 16
- 61
- 81
5
votes
0 answers
ruby_xml_node.c:624: error: dereferencing pointer to incomplete type
I tried install libxml-ruby v2.3.3 for Mac OS X.
localhost:tmp$ uname -a
Darwin 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:26:45 PDT 2012; root:xnu-1699.32.7~1/RELEASE_I386 i386
localhost:tmp$ ruby -v
ruby 1.9.2p320 (2012-04-20 revision…

Руслан Терехов
- 51
- 3
4
votes
1 answer
How do I tell libxml-ruby about external entity files?
I'm trying to validate using libxml-ruby's DTD#validate, but I keep getting the following warnings:
Warning: failed to load external entity "xhtml-lat1.ent" at :29.
Warning: failed to load external entity "xhtml-symbol.ent" at :34.
Warning: failed…

James A. Rosen
- 64,193
- 61
- 179
- 261
4
votes
2 answers
Add comment nodes outside root with ruby-libxml
I am writing an xml exporter in ruby and I am using libxml package for it.
I want to write some comment nodes outside the root element
How do I accomplish export…

Schu
- 1,124
- 3
- 11
- 23
4
votes
3 answers
Processing large XML file with libxml-ruby chunk by chunk
I'd like to read a large XML file that contains over a million small bibliographic records (like ... ) using libxml in Ruby. I have tried the Reader class in combination with the expand method to read record by record but I am not…

Christian Lindig
- 1,216
- 1
- 9
- 24
4
votes
1 answer
cannot load such file -- libxml_ruby for Windows
My step is,
Execute RubyInstaller.exe file
install ruby
installed Path: c:\ruby193
install DevKit
gem install libxml-ruby --platform x86-mswin32-60
make test.rb file
require 'rubygems'
require 'xml'
ruby test.rb
print error msg
Error…

user1839042
- 41
- 1
- 3
2
votes
1 answer
libxml-ruby on windows xp problem
About a month ago I installed libxml-ruby using
gem install libxml-ruby
and it worked fine.
Then i went to install it on another machine today and it failed with this error:
C:\Windows\system32>gem install -r libxml-ruby
Building native extensions.…

Matt Wolfe
- 8,924
- 8
- 60
- 77
2
votes
1 answer
How to solve "libxml2 missing package" error on "gem install ovirt-engine-sdk" on Windows?
I am trying to run gem install ovirt-engine-sdk on a Windows 10 machine and I am facing the following issue:
extconf.rb:29:in `': The "libxml2" package isn't available. (RuntimeError)
To see why this extension failed to compile, please check…
2
votes
1 answer
Declaring namespaces using libxml-ruby
I am using libxml-ruby for parsing XML.
I can able to create the xml file using libxml-ruby, but the problem is I am not able to declare the namespace for generated XML document.
Please help me how to create the namespace for newly generating…

naveen
- 1,451
- 6
- 21
- 27
2
votes
3 answers
I'm unable to install twilio gem as I get an error installing install libxml
This is the error message I'm getting in CLI. I tried the solutions given in other posts like, sudo gem install twilio-ruby but that didn't work. I'm using a Mac with Sierra. I have ruby 2.4. Any help is appreciated as this is such a small part of a…

haletothewood
- 105
- 3
- 11
2
votes
0 answers
Cannot load libxml_ruby.so for libxml-ruby gem
I installed the libxml-ruby gem, with the --platform=x86_64 flag, and whenever I try to require 'xml' I get an error.
Ruby24-x64/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require':
126: The specified module could not be…

Tyler
- 51
- 7