Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7438399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:32:57+00:00 2026-05-29T10:32:57+00:00

I have installed cURB library for my rails 2 application and I am able

  • 0

I have installed cURB library for my rails 2 application and I am able to send multiple xml files to a single url of a web service as a post request. In addition to that I receive an receipt from the web service in an xml file which I need to be parsed by my application and out put the errors that have been created from the submitted file.
Please could some one guide me with a good library and tutorial in capturing the response and parsing the xml document.

All suggestions are appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:32:58+00:00Added an answer on May 29, 2026 at 10:32 am

    Unless you have already doing so, I recommend you use the libxml2 library for processing XML. The libxml2 library is available as a package on every major Linux distribution.

    gem install libxml-ruby
    

    What follows is a standalone example, that works with Rails 2.3.14, showing how to parse results from curb objects using an XML parser. It then demonstrates how to use XPath queries to select elements from the parsed XML document.

    require 'xml/libxml'
    require 'curb'
    
    # I have included this part so that this serves as a standalone example
    
    ce = Curl::Easy.new("http://www.myexperiment.org/announcements.xml")
    ce.perform
    
    # This is the part that deals with parsing the XML result
    
    doc = LibXML::XML::Parser.string(ce.body_str).parse
    
    # You can then use XPath queries to process the results, e.g.:
    
    doc.find("/announcements/announcement").each do |el|
      puts el.content
    end
    

    Complete documentation for libxml-ruby is available.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed an application as a service and set the DependOnService to be
I have installed the acts_as_versioned plugin from github.com in my rails application, and there
I have installed: Visual C# 2008 Express Visual Web Developer 2008 Express Visual Studio
I have installed pylons based application from egg, so it sits somewhere under /usr/lib/python2.5/site-packages.
I have installed the HerzultFourmBundle into my Symfony2 application, added the calls in the
I have installed bootstrap to my Rails 3.2 app this way (through Gemfile): gem
I have installed a library that has some functions with the same name as
I have installed jasper plugins for my grails application. Then in the list.groovy page
I have installed a drupal-commons. During the install it shows lots of too-many-files-open-errors. (guess
I have installed NppExecute plugin in notepad++. I am not able to figure out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.