Helper classes

A parser developer may choose to write classes that implement the interfaces described above, and also add further useful methods. But this kind of support is optional. The standard includes some recommendations for helper classes, and specifies that they appear in the following package:

org.xml.sax.helpers

Attributes list implementation

The AttributesListImpl helper class has the following constructors and methods. It implements the AttributesList interface, and adds methods for adding and removing attributes. It could be used by application developers to persistently store and manage attributes.

Constructors:

AttributeListImpl();

AttributeListImpl(AttributeList atts);

Methods:

 int getLength(); String getName(int i); String ...

Get XML Companion, The, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.