class Builder::XmlMarkup

def initialize(options={})


finer control over escaping attribute values.
values), then give the value as a Symbol. This allows much
values (perhaps you are using entities in the attribute
now automatically escaped. If you need unescaped attribute
(and will be quietly ignored). String attribute values are
The :escape_attrs option is no longer supported by builder
:escape_attrs=>OBSOLETE::

spaces).
Amount of initial indentation (specified in levels, not
:margin=>initial_indentation_level::

indentation and no line breaks.
Number of spaces used for indentation. The default is no
:indent=>indentation::

itself. The default target is a plain string target.
the <<(a_string) operator and return
Object receiving the markup. +target_object+ must respond to
:target=>target_object::

option hash.
Create an XML markup builder. Parameters are specified by an
def initialize(options={})
  indent = options[:indent] || 0
  margin = options[:margin] || 0
  super(indent, margin)
  @target = options[:target] || ""
end