# Object TTreeBuilder

Description
Hierarchy
Fields
Methods
Properties

## Unit

simplehtmltreeparser

## Declaration

`type TTreeBuilder = object(TObject)`

## Description

## Hierarchy

- TObject
- TTreeBuilder

## Overview

### Fields

| `nested const ROOT_ELEMENT_INDEX = 1;`
| `currentDocument: TTreeDocument;`
| `currentRoot: TTreeNode;`
| `baseoffset: TTreeNodeIntOffset;`

### Methods

| `procedure initDocument(aNodeClass: TTreeNodeClass = nil);`
| `procedure initDocument(aparser: TTreeParser);`
| `procedure done;`
| `function appendElement(const localname: string): TTreeNode;`
| `function appendElement(namespace: TNamespace; localname: string): TTreeNode;`
| `procedure appendText(const value: string);`
| `procedure appendAttribute(const name, value: string);`
| `function closeElement: TTreeNode;`
| `procedure closeAllElementsAndDocument;`

## Description

### Fields

| `nested const ROOT_ELEMENT_INDEX = 1;`

| `currentDocument: TTreeDocument;`

| `currentRoot: TTreeNode;`

| `baseoffset: TTreeNodeIntOffset;`

### Methods

| `procedure initDocument(aNodeClass: TTreeNodeClass = nil);`

| `procedure initDocument(aparser: TTreeParser);`

| `procedure done;`

| `function appendElement(const localname: string): TTreeNode;`

| `function appendElement(namespace: TNamespace; localname: string): TTreeNode;`

| `procedure appendText(const value: string);`

| `procedure appendAttribute(const name, value: string);`

| `function closeElement: TTreeNode;`

| `procedure closeAllElementsAndDocument;`

Generated by PasDoc 0.16.0.