org.xml.sax.ext.DeclHandler.attributeDecl
method
public attributeDecl(elementName as String, attributeName as String, type as String, mode as String, value as String) as Void throws SAXException
Description

Reports an attribute declaration.

Parameters
ParameterDescription
elementNameDeclaring element name.
attributeNameAttribute name.
typeAttribute type.
modeDefaulting mode such as #IMPLIED, or null.
valueDefault value, or null.
Throws
  • SAXException if the application wants to interrupt parsing.
Example
handler.attributeDecl("book", "id", "ID", "#REQUIRED", null)