Hi Brian
> I'm sure if you post your actual code and what it does, someone will 
> help you tweak it to work.

actual code was this

require 'rubygems'
require 'yaml'
require 'hpricot'




 html_datei = File.open(ARGV[0]).readlines.collect do |line|


  option 1#  line.gsub(/<\/?[^>]*>/, "").to_yaml
  option 2 # line.gsub(/</, 
"").gsub(/>/,"").strip.to_yaml.gsub(/---/,"").lstrip
  option 3 # line.gsub(/^<\/?[^>]*>/,"").lstrip
 end

# all 3 options worked, but I couldn't figure out how to get those "" or 
'' in between
# so I tried hpricot

  doc = open(ARGV[0]) { |f| Hpricot(f).search("div") }

 # but how to go from here? I couldn't figure out the documentation of 
Hpricot, because .to_inner_html doesn't work




 yaml_datei = File.new(ARGV[1], 'w+')

 yaml_datei << html_datei
 yaml_datei << doc
 yaml_datei.close

 so, that was my actual code
-- 
Posted via http://www.ruby-forum.com/.