Example usage for org.dom4j.dtd ElementDecl ElementDecl

List of usage examples for org.dom4j.dtd ElementDecl ElementDecl

Introduction

In this page you can find the example usage for org.dom4j.dtd ElementDecl ElementDecl.

Prototype

public ElementDecl(String name, String model) 

Source Link

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);
}