Posted By: Jim Weirich
Date: 2006-02-07 06:50
Summary: XML Builder 2.0.0
Project: XML Builder

= Builder 2.0.0 Released.

== Changes in 2.0.0

* UTF-8 characters in data are now correctly translated to their XML
equivalents. (Thanks to Sam Ruby)

* Attribute values are now escaped by default. See the README
file for details.

<b>NOTE:</b> The escaping attribute values by default is different
than in previous releases of Builder. This makes version 2.0.0
somewhat incompatible with the 1.x series of Builder. If you use "&",
"<", or ">" in attributes values, you may have to change your
code. (Essentially you remove the manual escaping. The new way is
easier, believe me).

== What is Builder?

Builder::XmlMarkup is a library that allows easy programmatic creation
of XML markup. For example:

builder = Builder::XmlMarkup.new(:target=>STDOUT, :indent=>2)
builder.person { |b| b.name("Jim"); b.phone("555-1234") }

will generate:

<person>
<name>Jim</name>
<phone>555-1234</phone>
</person>

== Availability

The easiest way to get and install builder is via RubyGems ...

gem install builder (you may need root/admin privileges)

== Thanks

* Sam Ruby for the XChar module and the related UTF-8 translation
tools.
* Also to Sam Ruby for gently persuading me to start quoting attribute
values.

-- Jim Weirich

Latest News
TZInfo v1.0.0 and TZInfo::Data v1.2013.3 Released
    Philip Ross - 2013-06-02 17:12
icalendar 1.4.0 Released
    Ryan Ahearn - 2013-05-21 23:17
BinData 1.5.0 - source moved to github
    Dion Mendel - 2013-05-21 11:10
v13.5.0 Released !!
    id 774 - 2013-05-18 12:28
Runt v0.9.0 Released
    Matthew Lipper - 2013-05-17 00:11

 

Forums | Admin

Discussion Forums: xml-builder-2.0.0-released

Start New Thread Start New Thread

 

Topic Topic Starter Replies Last Post