Search in sources :

Example 1 with DOMImplementationImpl

use of org.loboevolution.html.dom.domimpl.DOMImplementationImpl in project LoboEvolution by LoboEvolution.

the class XMLContentHandler method createDocument.

private Document createDocument(String uri, String qName) {
    UserAgentContext context = new UserAgentContext();
    context.setUserAgentEnabled(false);
    DOMImplementationImpl domImpl = new DOMImplementationImpl(context);
    DocumentType doctype = domImpl.createDocumentType("HTML", null, null);
    return domImpl.createDocument(uri, "HTML", doctype);
}
Also used : UserAgentContext(org.loboevolution.http.UserAgentContext) DOMImplementationImpl(org.loboevolution.html.dom.domimpl.DOMImplementationImpl)

Example 2 with DOMImplementationImpl

use of org.loboevolution.html.dom.domimpl.DOMImplementationImpl in project LoboEvolution by LoboEvolution.

the class DOMDocumentTest method setUpBeforeClass.

@BeforeClass
public static void setUpBeforeClass() {
    UserAgentContext context = new UserAgentContext(true);
    context.setUserAgentEnabled(false);
    domImpl = new DOMImplementationImpl(context);
}
Also used : UserAgentContext(org.loboevolution.http.UserAgentContext) DOMImplementationImpl(org.loboevolution.html.dom.domimpl.DOMImplementationImpl) BeforeClass(org.junit.BeforeClass)

Example 3 with DOMImplementationImpl

use of org.loboevolution.html.dom.domimpl.DOMImplementationImpl in project LoboEvolution by LoboEvolution.

the class DOMNodeTest method setUpBeforeClass.

@BeforeClass
public static void setUpBeforeClass() {
    UserAgentContext context = new UserAgentContext(true);
    context.setUserAgentEnabled(false);
    impl = new DOMImplementationImpl(context);
}
Also used : UserAgentContext(org.loboevolution.http.UserAgentContext) DOMImplementationImpl(org.loboevolution.html.dom.domimpl.DOMImplementationImpl) BeforeClass(org.junit.BeforeClass)

Example 4 with DOMImplementationImpl

use of org.loboevolution.html.dom.domimpl.DOMImplementationImpl in project LoboEvolution by LoboEvolution.

the class DOMImplementationTest method setUpBeforeClass.

@BeforeClass
public static void setUpBeforeClass() {
    UserAgentContext context = new UserAgentContext(true);
    context.setUserAgentEnabled(false);
    domImpl = new DOMImplementationImpl(context);
}
Also used : UserAgentContext(org.loboevolution.http.UserAgentContext) DOMImplementationImpl(org.loboevolution.html.dom.domimpl.DOMImplementationImpl) BeforeClass(org.junit.BeforeClass)

Aggregations

DOMImplementationImpl (org.loboevolution.html.dom.domimpl.DOMImplementationImpl)4 UserAgentContext (org.loboevolution.http.UserAgentContext)4 BeforeClass (org.junit.BeforeClass)3