class Builder::XmlEvents


callback contains all the text data.
text call, so the client cannot assume that a single
A series of characters may be broken up into more than one
Announces that a string of characters (text) has been found.
[text(text)]

Announces that an end tag for tag has been found.
[end_tag(tag)]

the tag and attrs is a hash of attributes for the tag.
Announces that a new tag has been found. tag is the name of
[start_tag(tag, attrs)]
The handler object must expect the following events.
== XML Event Handler
xe = Builder::XmlEvents.new(handler, indent_size, initial_indent_level)
indentation size and initial indentation level.
Indentation may also be selected by providing value for the
xe.title(“HI”) # Sends start_tag/end_tag/text messages to the handler.
xe = Builder::XmlEvents.new(hander)
Usage:
markup.
and passed to a handler rather than generating character-based
to XmlMarkup objects, except that a series of events are generated
from the markup code. XmlEvent objects are used in a way similar
Create a series of SAX-like XML events (e.g. start_tag, end_tag)

def _end_tag(sym)

def _end_tag(sym)
  @target.end_tag(sym)
end

def _start_tag(sym, attrs, end_too=false)

def _start_tag(sym, attrs, end_too=false)
  @target.start_tag(sym, attrs)
  _end_tag(sym) if end_too
end

def text!(text)

def text!(text)
  @target.text(text)
end