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
  • elementName Declaring element name.
  • attributeName Attribute name.
  • type Attribute type.
  • mode Defaulting mode such as `#IMPLIED`, or `null`.
  • value Default value, or `null`.
Throws
  • SAXException if the application wants to interrupt parsing.
Example
handler.attributeDecl("book", "id", "ID", "#REQUIRED", null)