Example usage for org.dom4j.dtd AttributeDecl AttributeDecl

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

Introduction

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

Prototype

public AttributeDecl(String elementName, String attributeName, String type, String valueDefault, String value) 

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