Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
For 2021 - online Python 3 training - see ((here)).

Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.

Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.
Sample XML data
Ruby GUIs, XML, SQL Database Connectivity example from a Well House Consultants training course
More on Ruby GUIs, XML, SQL Database Connectivity [link]

This example is described in the following article(s):
   • A simple example - XML from a Ruby program - [link]

This example references the following resources:
http://www.wellho.net/horse/
http://www.movabletype.org/?v=3.01D
http://blogs.law.harvard.edu/tech/rss
http://www.wellho.net/archives/2010/04/index.html#002713
http://www.wellho.net/archives/2010/04/index.html#002713
http://www.wellho.net/archives/2010/04/index.html#002712
http://www.wellho.net/archives/2010/04/index.html#002712
http://www.wellho.net/archives/2010/04/index.html#002711
http://www.wellho.net/archives/2010/04/index.html#002711
http://www.wellho.net/archives/2010/04/index.html#002710
http://www.wellho.net/archives/2010/04/index.html#002710
http://www.wellho.net/archives/2010/04/index.html#002709
http://www.wellho.net/archives/2010/04/index.html#002709
http://www.wellho.net/archives/2010/04/index.html#002708
http://www.wellho.net/archives/2010/04/index.html#002708
http://www.wellho.net/archives/2010/04/index.html#002707
http://www.wellho.net/archives/2010/04/index.html#002707
http://www.wellho.net/archives/2010/04/index.html#002706
http://www.wellho.net/archives/2010/04/index.html#002706
http://www.wellho.net/archives/2010/04/index.html#002705
http://www.wellho.net/archives/2010/04/index.html#002705
http://www.wellho.net/archives/2010/04/index.html#002704
http://www.wellho.net/archives/2010/04/index.html#002704
http://www.wellho.net/archives/2010/04/index.html#002703
http://www.wellho.net/archives/2010/04/index.html#002703
http://www.wellho.net/archives/2010/04/index.html#002702
http://www.wellho.net/archives/2010/04/index.html#002702
http://www.wellho.net/archives/2010/04/index.html#002701
http://www.wellho.net/archives/2010/04/index.html#002701
http://www.wellho.net/archives/2010/03/index.html#002700
http://www.wellho.net/archives/2010/03/index.html#002700
http://www.wellho.net/archives/2010/03/index.html#002699
http://www.wellho.net/archives/2010/03/index.html#002699

Source code: myrssfeed.xml Module: R117

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Horse&apos;s Mouth</title>
<link>http://www.wellho.net/horse/</link>
<description>Musing, events and thoughts from Graham Ellis</description>
<language>en-us</language>
<copyright>Copyright 2010</copyright>
<lastBuildDate>Fri, 09 Apr 2010 06:57:21 +0000</lastBuildDate>
<pubDate>Fri, 09 Apr 2010 07:01:49 +0000</pubDate>

<generator>http://www.movabletype.org/?v=3.01D</generator>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>

<item>
<title>History is all around us</title>
<description>Some images from the last few days - all taken close to home in Melksham (some very close indeed!) ... Woolmore House at Bowerhill on the Melksham to Devizes Road was built by George Hulbert in 1631. It is believed...</description>
<link>http://www.wellho.net/archives/2010/04/index.html#002713</link>
<guid>http://www.wellho.net/archives/2010/04/index.html#002713</guid>
<category></category>
<pubDate>Fri, 09 Apr 2010 06:57:21 +0000</pubDate>
</item>

<item>
<title>A more informed decision than ever before</title>
<description>They&apos;re off! Gordon Brown fired the starting gun the other day - and I was most impressed that by the time that I came out of Well House Manor that evening, there were Orange posters up across the road. I...</description>
<link>http://www.wellho.net/archives/2010/04/index.html#002712</link>
<guid>http://www.wellho.net/archives/2010/04/index.html#002712</guid>
<category></category>
<pubDate>Thu, 08 Apr 2010 19:20:49 +0000</pubDate>
</item>
<item>
<title>For loop - checked once, or evety time? Ruby v Perl comparison and contrast</title>

<description>Although may aspects of Ruby are inherited (in a non-OO way!) from Perl, there are some distinct differences too; a classic for loop in Perl has its end condition checked every time around the loop, but a Ruby for loop...</description>
<link>http://www.wellho.net/archives/2010/04/index.html#002711</link>
<guid>http://www.wellho.net/archives/2010/04/index.html#002711</guid>
<category></category>
<pubDate>Wed, 07 Apr 2010 19:18:58 +0000</pubDate>
</item>
<item>
<title>__index and __newindex in Lua - metatable methods</title>
<description>When you call up an element in a table in Lua, it&apos;s like accessing an array element - and it works well. But you can go further by associating a metatable with a table - that&apos;s another table with a...</description>

<link>http://www.wellho.net/archives/2010/04/index.html#002710</link>
<guid>http://www.wellho.net/archives/2010/04/index.html#002710</guid>
<category></category>
<pubDate>Mon, 05 Apr 2010 11:32:01 +0000</pubDate>
</item>
<item>
<title>Old trackways and routes near Melksham</title>
<description>I&apos;ve often wondered why Statton&apos;s Walk leads into the road past the Co-op, through Dorset Crescent and out into the countryside on a public footpath that&apos;s well defined at first but then crosses another path, and a broken style. It...</description>
<link>http://www.wellho.net/archives/2010/04/index.html#002709</link>

<guid>http://www.wellho.net/archives/2010/04/index.html#002709</guid>
<category></category>
<pubDate>Mon, 05 Apr 2010 02:03:59 +0000</pubDate>
</item>
<item>
<title>The bull on the footpath</title>
<description>There are certain paths - even though they are marked on the map as public footpaths - that I will decline to use. This animal is standing on one of them! More Semington Pictures...</description>
<link>http://www.wellho.net/archives/2010/04/index.html#002708</link>
<guid>http://www.wellho.net/archives/2010/04/index.html#002708</guid>
<category></category>
<pubDate>Sun, 04 Apr 2010 20:43:53 +0000</pubDate>

</item>
<item>
<title>A walk on the Kennet and Avon</title>
<description>Today, I was reminded that just one little push of the rudder of a narrow boat, gently and with a single finder, can channel the power of the eight tons into a change of direction and a force to be...</description>
<link>http://www.wellho.net/archives/2010/04/index.html#002707</link>
<guid>http://www.wellho.net/archives/2010/04/index.html#002707</guid>
<category></category>
<pubDate>Sun, 04 Apr 2010 20:04:40 +0000</pubDate>
</item>
<item>
<title>Error trapping in Lua - no exceptions.</title>

<description>Lua&apos;s a small language - it&apos;s about a twentieth of the size of most of the others I teach - so there isn&apos;t the space for the nicities of things like expection handling. But it does very nicely, thank you!...</description>
<link>http://www.wellho.net/archives/2010/04/index.html#002706</link>
<guid>http://www.wellho.net/archives/2010/04/index.html#002706</guid>
<category></category>
<pubDate>Sun, 04 Apr 2010 01:58:50 +0000</pubDate>
</item>
<item>
<title>Hotel booking in Melksham made easy!</title>
<description>I&apos;ve given the Well House Manor Hotel Site an overdue lick of paint today, and upgraded the staff facing reports from the pages too. And the changes are all about easy navigation, easily finding what you need, and leading nicely...</description>

<link>http://www.wellho.net/archives/2010/04/index.html#002705</link>
<guid>http://www.wellho.net/archives/2010/04/index.html#002705</guid>
<category></category>
<pubDate>Sat, 03 Apr 2010 19:06:54 +0000</pubDate>
</item>
<item>
<title>A walk within without - Melksham Without</title>
<description>I took a walk this afternoon - exploring paths from Shaw to Beanacre to Whitley and back to Shaw. Here are some images - 4 from 42. All the pictures (twice the size too!) ... first half of the walk...</description>
<link>http://www.wellho.net/archives/2010/04/index.html#002704</link>
<guid>http://www.wellho.net/archives/2010/04/index.html#002704</guid>

<category></category>
<pubDate>Fri, 02 Apr 2010 20:49:28 +0000</pubDate>
</item>
<item>
<title>Lua Metatables</title>
<description>In a recent article ([here]), I asked if Lua was an object oriented language - and I concluded that it supports the OO paradigm very well, even though it doesn&apos;t have keywords like &quot;class&quot;, &quot;private&quot; or &quot;extends&quot;. At the end...</description>

<link>http://www.wellho.net/archives/2010/04/index.html#002703</link>
<guid>http://www.wellho.net/archives/2010/04/index.html#002703</guid>
<category></category>
<pubDate>Fri, 02 Apr 2010 07:31:14 +0000</pubDate>
</item>
<item>
<title>First and last match with Regular Expressions</title>
<description>Conventional Wisdom says that it&apos;s pointless to start a regular expression with &quot;.*&quot; or &quot;.+&quot;, as this is implied within a match - regular expression matches are looking for strings that are contained anyway: &apos;/abc/&apos; - contains abc &apos;/.*abc/&apos; -...</description>

<link>http://www.wellho.net/archives/2010/04/index.html#002702</link>
<guid>http://www.wellho.net/archives/2010/04/index.html#002702</guid>
<category></category>
<pubDate>Fri, 02 Apr 2010 06:27:42 +0000</pubDate>
</item>
<item>
<title>Is Lua an Object Oriented language?</title>
<description>Lua isn&apos;t an object oriented languages in the sense that you define classes, create objects with a new method, define interfaces and declare variables to be private or protected ... but never the less is a tool in which you...</description>
<link>http://www.wellho.net/archives/2010/04/index.html#002701</link>
<guid>http://www.wellho.net/archives/2010/04/index.html#002701</guid>

<category></category>
<pubDate>Thu, 01 Apr 2010 08:05:25 +0000</pubDate>
</item>
<item>
<title>The same very simple program in many different programming languages</title>
<description>I was asked how many languages I teach yesterday - and the answer&apos;s quite a few; at times, it&apos;s almost &quot;the more the merrier&quot; as to a very great extent they are varieties on a theme much of the way...</description>
<link>http://www.wellho.net/archives/2010/03/index.html#002700</link>
<guid>http://www.wellho.net/archives/2010/03/index.html#002700</guid>

<category></category>
<pubDate>Wed, 31 Mar 2010 07:32:37 +0000</pubDate>
</item>
<item>
<title>Lua tables - they are everything</title>
<description>In PHP, it sometimes feels like the answer to every question is &quot;there&apos;s a function to do that&quot; and in Lua, it seems the answer is always &quot;it&apos;s a table&quot; or &quot;use a table&quot;! I&apos;m running a Lua course this...</description>

<link>http://www.wellho.net/archives/2010/03/index.html#002699</link>
<guid>http://www.wellho.net/archives/2010/03/index.html#002699</guid>
<category></category>
<pubDate>Tue, 30 Mar 2010 23:12:55 +0000</pubDate>
</item>

</channel>
</rss>
Learn about this subject
This module and example are covered on the following public courses:
 * Learning to program in Ruby
 * Ruby Programming
Also available on on site courses for larger groups

Books covering this topic
Yes. We have over 700 books in our library. Books covering Ruby are listed here and when you've selected a relevant book we'll link you on to Amazon to order.

Other Examples
This example comes from our "Ruby GUIs, XML, SQL Database Connectivity" training module. You'll find a description of the topic and some other closely related examples on the "Ruby GUIs, XML, SQL Database Connectivity" module index page.

Full description of the source code
You can learn more about this example on the training courses listed on this page, on which you'll be given a full set of training notes.

Many other training modules are available for download (for limited use) from our download centre under an Open Training Notes License.

Other resources
• Our Solutions centre provides a number of longer technical articles.
• Our Opentalk forum archive provides a question and answer centre.
The Horse's mouth provides a daily tip or thought.
• Further resources are available via the resources centre.
• All of these resources can be searched through through our search engine
• And there's a global index here.

Web site author
This web site is written and maintained by Well House Consultants.

Purpose of this website
This is a sample program, class demonstration or answer from a training course. It's main purpose is to provide an after-course service to customers who have attended our public private or on site courses, but the examples are made generally available under conditions described below.

Conditions of use
Past attendees on our training courses are welcome to use individual examples in the course of their programming, but must check the examples they use to ensure that they are suitable for their job. Remember that some of our examples show you how not to do things - check in your notes. Well House Consultants take no responsibility for the suitability of these example programs to customer's needs.

This program is copyright Well House Consultants Ltd. You are forbidden from using it for running your own training courses without our prior written permission. See our page on courseware provision for more details.

Any of our images within this code may NOT be reused on a public URL without our prior permission. For Bona Fide personal use, we will often grant you permission provided that you provide a link back. Commercial use on a website will incur a license fee for each image used - details on request.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2021: 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/resources/ex.php4 • PAGE BUILT: Sun Oct 11 14:50:09 2020 • BUILD SYSTEM: JelliaJamb