List of usage examples for org.dom4j DocumentType setInternalDeclarations
void setInternalDeclarations(List<Decl> declarations);
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); }