# XMLRPC::XMLParser::XMLParser LoadError: cannot load such file -- xmltreebuilder

**URL:** <https://www.ruby-forum.com/t/xmlrpc-xmlparser-loaderror-cannot-load-such-file-xmltreebuilder/223885>\
**Category:** Ruby\
**Created:** [October 22, 2012, 2:48pm UTC](https://www.ruby-forum.com/t/xmlrpc-xmlparser-loaderror-cannot-load-such-file-xmltreebuilder/223885 "2012-10-22T14:48:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [October 22, 2012, 2:48pm UTC](https://www.ruby-forum.com/t/xmlrpc-xmlparser-loaderror-cannot-load-such-file-xmltreebuilder/223885/1 "2012-10-22T14:48:45Z")

</div>

Hi,

I have a problem:  
I need to parse some XML-RPC-formatted XML in Ruby. I don’t have access  
to the XML-RPC service, I just want to turn an XML string that is  
returned from such a service into the respective Ruby objects (hashes,  
arrays, strings etc).

I’ve played around with the built-in XMLRPC stuff (in Ruby 1.9.3), but I  
don’t get very far:

require ‘xmlrpc/parser’  
parser = XMLRPC::XMLParser::XMLParser.new

That results in this exception:

LoadError: cannot load such file – xmltreebuilder  
from  
/Users/johannes/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site\_ruby/1.9.1/rubygems/custom\_require.rb:36:in  
`require' from /Users/johannes/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in`require’  
from  
/Users/johannes/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/xmlrpc/parser.rb:620:in  
`initialize' from (irb):2:in`new’  
from (irb):2  
from /Users/johannes/.rvm/rubies/ruby-1.9.3-p0/bin/irb:16:in `’  
I then tried to instantiate different XMLParser subclasses, all to no  
avail.

Do you have any pointers on how to get this to work? Is it even possible  
to just parse RPC XML without using the XMLRPC::Client with the built-in  
library?

Thanks!
