XmlDtd.addAttributeDecl

void addAttributeDecl(XmlDtdAttributeDecl decl) @safe

Adds an attribute declaration.

Per XML 1.0, multiple <!ATTLIST> declarations for the same element are merged. If an attribute with the same name on the same element is already declared, the first declaration wins and this call is silently ignored.

Parameters

declAttribute declaration.

Throws

XmlException if decl.elementName or decl.name is empty.