/** * Add a new element to this builder. * * @param name * @param content * @return the XmlStringBuilder */ public XmlStringBuilder element(String name, String content) { assert content != null; openElement(name); escape(content); closeElement(name); return this; }
public XmlStringBuilder escapedElement(String name, String escapedContent) { assert escapedContent != null; openElement(name); append(escapedContent); closeElement(name); return this; }