Top "Nokogiri" questions

An HTML, XML, SAX and Reader parser for Ruby with the ability to search documents via XPath or CSS3 selectors… and much more

Nokogiri to_xml without carriage returns

I'm currently using the Nokogiri::XML::Builder class to construct an XML document, then calling .to_xml on it. The …

ruby xml newline nokogiri
Find and replace entire HTML nodes with Nokogiri

i have an HTML, that should be transformed, having some tags replaced with another tags. I don't know about these …

html ruby-on-rails replace nokogiri transformation
Getting nokogiri to use a newer version of libxml2

I've been trying to get Nokogiri installed on my computer (Mountain Lion) to use with rspec and capybara, but for …

ruby-on-rails ruby rspec nokogiri libxml2
Changing href attributes with nokogiri and ruby on rails

I Have a HTML document with links links, for exemple: <html> <body> <ul> <…

html ruby-on-rails parsing string nokogiri
Strip text from HTML document using Ruby

There are lots of examples of how to strip HTML tags from a document using Ruby, Hpricot and Nokogiri have …

html ruby nokogiri hpricot
Can't install Nokogiri for Ruby in Windows

I know this is simple but I just can't figure it out. I need to run a script in Ruby …

ruby windows nokogiri devkit
Extract some JSON using Nokogiri

require 'open-uri' require 'json' require 'nokogiri' doc = Nokogiri::HTML(open("http://www.highcharts.com/demo/")) puts doc But I want …

ruby nokogiri open-uri
gem install nokogiri -v '1.6.8.1' fails

Building a new Rails app and getting a problem with nokogiri. Said to try gem install nokogiri -v '1.6.8.1' …

ruby-on-rails ruby rubygems nokogiri bundler
How do I get Nokogiri to add the right XML encoding?

I have created a xml doc with Nokogiri: Nokogiri::XML::Document The header of my file is <?xml version="1.0"?&…

ruby xml encoding nokogiri
trying to get content inside cdata tags in xml file using nokogiri

I have seen several things on this, but nothing has seemed to work so far. I am parsing an xml …

ruby ruby-on-rails-3.1 xml-parsing nokogiri cdata