8788899091929394959697
} final DOMNode newHtmlNode = cloneAndAppendChildren(securityContext, firstChild); final Page newPage = Page.createNewPage(securityContext, newName); newPage.appendChild(newHtmlNode); } } catch (FrameworkException fex) {
188189190191192193194195196197198
a = (DOMNode) page.createElement("a"); div4 = (DOMNode) page.createElement("div"); p4 = (DOMNode) page.createElement("p"); // add HTML element to page page.appendChild(html); // add HEAD and BODY elements to HTML html.appendChild(head); html.appendChild(body);
6970717273747576777879
Element h1 = newPage.createElement("h1"); Element div = newPage.createElement("div"); try { // add HTML element to page newPage.appendChild(html); // add HEAD and BODY elements to HTML html.appendChild(head); html.appendChild(body);