klyn.io.xml.sax.SAXAttributes.add
method
public add(uri as String, localName as String, qName as String, type as String = "CDATA", value as String = "", declared as Boolean = false, specified as Boolean = true) as Void:
Description

Adds one attribute to the collection.

Parameters
  • uri Namespace URI, or empty string.
  • localName Local attribute name, or empty string when unavailable.
  • qName Qualified attribute name.
  • type Attribute type, usually `CDATA`.
  • value Attribute value.
  • declared True when the attribute was declared in a DTD.
  • specified True when the attribute was present in the source text.
Example
attrs.add("", "class", "class", "CDATA", "featured")