builder-1.2.4.rdoc 646 B

12345678910111213141516171819202122232425262728293031
  1. = Builder 1.2.4 Released.
  2. Added a "CDATA" method to the XML Markup builder (from Josh Knowles).
  3. == What is Builder?
  4. Builder::XmlMarkup allows easy programmatic creation of XML markup.
  5. For example:
  6. builder = Builder::XmlMarkup.new(:target=>STDOUT, :indent=>2)
  7. builder.person { |b| b.name("Jim"); b.phone("555-1234") }
  8. puts builder.target!
  9. will generate:
  10. <person>
  11. <name>Jim</name>
  12. <phone>555-1234</phone>
  13. </person>
  14. == Availability
  15. The easiest way to get and install builder is via RubyGems ...
  16. gem install builder (you may need root/admin privileges)
  17. == Thanks
  18. * Josh Knowles for the cdata! patch.
  19. -- Jim Weirich