Package com.enonic.xp.xml

## Class DomBuilder

- java.lang.Object
- - com.enonic.xp.xml.DomBuilder

-     @PublicApi
      public final class DomBuilder
      extends Object

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `DomBuilder` | `attribute​(String name, String value)` |
    `static DomBuilder` | `create​(String name)` |
    `static DomBuilder` | `create​(String namespace, String name)` |
    `DomBuilder` | `end()` |
    `Document` | `getDocument()` |
    `DomBuilder` | `start​(String name)` |
    `DomBuilder` | `text​(String content)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### start

          public DomBuilder start​(String name)

    - #### end

          public DomBuilder end()

    - #### attribute

          public DomBuilder attribute​(String name,
                                      String value)

    - #### text

          public DomBuilder text​(String content)

    - #### create

          public static DomBuilder create​(String name)

    - #### create

          public static DomBuilder create​(String namespace,
                                          String name)

    - #### getDocument

          public Document getDocument()