public Element writeText(String text, boolean newline) { if (!openEnded) { open(newline); } append(text); return this; }
public Element begin(String prefix, String name) { if (!openEnded) { open(); } Element el = new Element(this, prefix, name); return el; }