Example #1
0
  public static Document createShell(String baseUri) {
    Validate.notNull(baseUri);

    Document doc = new Document(baseUri);
    Element html = doc.appendElement("html");
    html.appendElement("head");
    html.appendElement("body");

    return doc;
  }
Example #2
0
 public Document clone() {
   Document clone = (Document) super.clone();
   clone.outputSettings = this.outputSettings.clone();
   return clone;
 }