Example #1
0
 public Element writeText(String text, boolean newline) {
   if (!openEnded) {
     open(newline);
   }
   append(text);
   return this;
 }
Example #2
0
    public Element begin(String prefix, String name) {
      if (!openEnded) {
        open();
      }

      Element el = new Element(this, prefix, name);
      return el;
    }