예제 #1
0
 public override Object Clone()
 {
     iText.StyledXmlParser.Jsoup.Nodes.Document clone = (iText.StyledXmlParser.Jsoup.Nodes.Document)base.Clone(
         );
     clone.outputSettings = (iText.StyledXmlParser.Jsoup.Nodes.OutputSettings) this.outputSettings.Clone();
     return(clone);
 }
예제 #2
0
 /// <summary>Create a valid, empty shell of a document, suitable for adding more elements to.</summary>
 /// <param name="baseUri">baseUri of document</param>
 /// <returns>document with html, head, and body elements.</returns>
 public static iText.StyledXmlParser.Jsoup.Nodes.Document CreateShell(String baseUri)
 {
     Validate.NotNull(baseUri);
     iText.StyledXmlParser.Jsoup.Nodes.Document doc  = new iText.StyledXmlParser.Jsoup.Nodes.Document(baseUri);
     iText.StyledXmlParser.Jsoup.Nodes.Element  html = doc.AppendElement("html");
     html.AppendElement("head");
     html.AppendElement("body");
     return(doc);
 }