public void Init() {
     html = new Element("html");
     head = new Element("head");
     html.appendChild(head);
     document = new Document(html);
     metadataCreator = new MetadataCreator();
 }
 public void beforeParsing(Document document)
 {
     var rootElement = new Element(document.getRootElement());
     var existingValue = rootElement.getAttributeValue(FakeExtensionAttrName);
     var newValue = this.m_Text;
     if (existingValue != null) {
         newValue = existingValue + ", " + newValue;
     }
     rootElement.addAttribute(FakeExtensionAttrName, newValue);
 }
 public void Init()
 {
     improver = new DocumentStructureImprover();
     html = new Element("html");
     document = new Document(html);
 }