This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
CHANGELOG | Wed Mar 05 21:40:22 -0800 2008 | [bwyrosdick] |
| |
LICENSE | Wed Mar 05 21:40:22 -0800 2008 | [bwyrosdick] |
| |
README | Wed Mar 05 21:52:32 -0800 2008 | [bwyrosdick] |
| |
demo.rb | Wed Mar 05 21:40:22 -0800 2008 | [bwyrosdick] |
| |
lib/ | Sat Mar 15 20:44:00 -0700 2008 | [Anthony Crumley] |
| |
test/ | Sat Mar 15 20:44:00 -0700 2008 | [Anthony Crumley] |
| |
xml-magic-0.1.0.gem | Wed Mar 05 21:40:22 -0800 2008 | [bwyrosdick] |
| |
xml-magic-0.1.1.gem | Sun Mar 16 04:40:14 -0700 2008 | [bwyrosdick] |
| |
xml_magic.gemspec | Sun Mar 16 04:40:14 -0700 2008 | [bwyrosdick] |
README
xml-magic makes accessing xml objects more like any other ruby object
== example
require 'xml_magic'
xml = <<XML
<project title="XML Magic">
<description>Test description.</description>
<contact type="Project Manager">Anthony</contact>
<contact type="Worker Bee">Ben</contact>
<contact type="Designer Bee">Jason</contact>
</project>
XML
project_info = CommonThread::XML::XmlMagic.new(xml)
puts project_info[:title]
puts project_info.description
for contact in project_info.contact
puts "#{contact} the #{contact[:type]}"
end
== example output
XML Magic
Test description.
Anthony the Project Manager
Ben the Worker Bee
Jason the Designer Bee



