builder-2.0.0.rdoc 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. = Builder 2.0.0 Released.
  2. == Changes in 2.0.0
  3. * UTF-8 characters in data are now correctly translated to their XML
  4. equivalents. (Thanks to Sam Ruby)
  5. * Attribute values are now escaped by default. See the README
  6. file for details.
  7. <b>NOTE:</b> The escaping attribute values by default is different
  8. than in previous releases of Builder. This makes version 2.0.0
  9. somewhat incompatible with the 1.x series of Builder. If you use "&",
  10. "<", or ">" in attributes values, you may have to change your
  11. code. (Essentially you remove the manual escaping. The new way is
  12. easier, believe me).
  13. == What is Builder?
  14. Builder::XmlMarkup is a library that allows easy programmatic creation
  15. of XML markup. For example:
  16. builder = Builder::XmlMarkup.new(:target=>STDOUT, :indent=>2)
  17. builder.person { |b| b.name("Jim"); b.phone("555-1234") }
  18. will generate:
  19. <person>
  20. <name>Jim</name>
  21. <phone>555-1234</phone>
  22. </person>
  23. == Availability
  24. The easiest way to get and install builder is via RubyGems ...
  25. gem install builder (you may need root/admin privileges)
  26. == Thanks
  27. * Sam Ruby for the XChar module and the related UTF-8 translation
  28. tools.
  29. * Also to Sam Ruby for gently persuading me to start quoting attribute
  30. values.
  31. -- Jim Weirich