List of usage examples for org.dom4j.dtd AttributeDecl AttributeDecl
public AttributeDecl(String elementName, String attributeName, String type, String valueDefault, String value)
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); }