예제 #1
0
 /**
  * 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;
 }
예제 #2
0
 public XmlStringBuilder escapedElement(String name, String escapedContent) {
   assert escapedContent != null;
   openElement(name);
   append(escapedContent);
   closeElement(name);
   return this;
 }