public final class XMLBuilder extends Object
Constructor and Description |
---|
XMLBuilder() |
Modifier and Type | Method and Description |
---|---|
XMLBuilder |
close()
Closes an element.
|
byte[] |
finish()
Returns the XML document as byte array, and invalidates the internal array.
|
XMLBuilder |
indent()
Activates indentation.
|
XMLBuilder |
open(Object name,
Object... attributes)
Opens an element.
|
XMLBuilder |
text(Object value)
Encodes the specified text.
|
String |
toString() |
public XMLBuilder indent()
public XMLBuilder open(Object name, Object... attributes)
name
- name of elementattributes
- name and value pairspublic XMLBuilder text(Object value)
value
- value to be encodedpublic XMLBuilder close()
public byte[] finish()
Copyright © 2005–2015 BaseX Team. All rights reserved.