[Home] [By Thread] [By Date] [Recent Entries]

  • From: Peter Flynn <peter@s...>
  • To: xml-dev@l...
  • Date: Tue, 31 Jan 2012 22:55:57 +0000

On 31/01/12 20:54, Markus Braun wrote:
> I have this code:
> 
> #/usr/bin/env ruby
> require 'rubygems'
> require 'nokogiri'
> require 'open-uri'
> 
> doc =
> Nokogiri::HTML(open("http://mobile.bahn.de/bin/mobil/bhftafel.exe/dox?input=Richard-Strauss-Stra%DFe%2C+M%FCnchen%23625127&date=27.01.12&time=20%3A41&productsFilter=1111111111000000&REQTrain_name=&maxJourneys=10&start=Suchen&boardType=Abfahrt&ao=yes"))
> doc = doc.xpath('//div').each do |node|
> doc.remove_namespaces!
>  puts node.text
> end
> 
> 
> but get to many blank spaces...
> 
> how can i remove it?

Ask in the right place, like comp.lang.ruby
This mailing list is for XML, not Ruby.

>> From: liam@w...
[snip]
>> Sometimes working out who to ask is a large part of getting an answer.

Amen

///Peter


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member