xmltreebuilder.rb

# XML::DOM::Builder

## Module XML

## Class XML::DOM::Builder (XML::SimpleTreeBuilder)

### superclass

XML::Parser

### Class Methods

`DOM::Builder.new(level = 0, *args)`

Constructor of DOM builder.

usage: parser = XML::SimpleTreeBuilder.new(level)

    level: 0 -- ignore default events (defualt)
           1 -- catch default events and create the Comment,
                the EntityReference, the XML declaration (as PI) and
                the non-DOM-compliant DocumentType nodes.

### Methods

`Builder#nameConverter(str)`

User redefinable name encoding converter

`Builder#cdataConverter(str)`

User redefinable cdata encoding converter

### Methods

`Builder#parse(xml, parse_ext = false)`

parse string or stream of XML contents.

    xml:       string or stream of XML contents
    parse_ext: flag whether parse external entities or not

ex. doctree = parser.parse(xml, parse_ext)