<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://h6e.net/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>h6e ruby</title>
    <subtitle></subtitle>
    <link rel="alternate" type="text/html" href="http://h6e.net/wiki/"/>
    <id>http://h6e.net/wiki/</id>
    <updated>2026-11-22T20:58:57+00:00</updated>
    <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
<link rel="self" type="application/atom+xml" href="http://h6e.net/wiki/feed.php" />
    <entry>
        <title>ruby:uwa</title>
        <link rel="alternate" type="text/html" href="http://h6e.net/wiki/ruby/uwa?rev=1279365601"/>
        <published>2010-07-17T11:20:01+00:00</published>
        <updated>2010-07-17T11:20:01+00:00</updated>
        <id>http://h6e.net/wiki/ruby/uwa?rev=1279365601</id>
        <summary>class UwaParser

	require 'net/http'
	require 'rexml/document'

	attr_reader :widget

	def initialize(url=nil)
		parse(url) if url.kind_of?(String)
	end

	def parse(url)
		@url = URI.parse(url)
		@widget = Widget.new()
		@widget.url = @url;
		buildWidget
		@widget
	end

	def buildWidget
		@htmlbody = Net::HTTP.get_response(@url).body
		normalise
		@htmldoc = REXML::Document.new(@htmlbody).root
		parseTitle
		parseMetas
		parsePreferences
		parseStyle
		#parseExternalStylesheets
		parseScript
		#…</summary>
    </entry>
</feed>
