Example usage for org.dom4j DocumentType setInternalDeclarations

List of usage examples for org.dom4j DocumentType setInternalDeclarations

Introduction

In this page you can find the example usage for org.dom4j DocumentType setInternalDeclarations.

Prototype

void setInternalDeclarations(List<Decl> declarations);

Source Link

Document

Sets the list of internal DTD declaration objects, defined in the org.dom4j.dtd package

Usage

From source file:org.etudes.component.app.melete.SubSectionUtilImpl.java

License:Apache License

private void setInternalDTD() {
    DocumentType docType = subSection4jDOM.getDocType();
    List internalDTDList = new ArrayList();
    internalDTDList.add(new ElementDecl("module", "(section+)"));
    internalDTDList.add(new ElementDecl("section", "(section*)"));
    internalDTDList.add(new AttributeDecl("section", "id", "ID", "#REQUIRED", "ID"));
    docType.setInternalDeclarations(internalDTDList);
}