Contents | Package | Class | Tree | Deprecated | Index | Help | XML for Java 1.0.4 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
By default, the XML4J parser will record the missing attribute as part of its error reporting, and continue. This interface permits applications to define a default value when none is provided by the DTD.
For example, an application program may want to default the value of the driver
attribute on an XML DB query specification Element to utilize the locally installed JDBC driver.
In this case, the application is registered with the XML4J parser instance, prior to
parsing the input stream, by using the addNoRequiredAttributeHandler
method.
Subsequently, the implemented handleNoRequiredAttribute
method will be invoked
by the XML4J parser instance when the input stream is read; the implemented
handleNoRequiredAttribute
method is responsible for manipulating the child
objects of the passed element.
Method Summary | |
TXElement | handleNoRequiredAttribute(TXElement element,
java.lang.String attributeName)
|
Method Detail |
public TXElement handleNoRequiredAttribute(TXElement element, java.lang.String attributeName)
element
- The Element Node missing the required attribute.
attributeName
- The name of the missing #REQUIRED
attribute.
Note that namespace names may also be included in Attribute names.
Contents | Package | Class | Tree | Deprecated | Index | Help | |||
PREV | NEXT | SHOW LISTS | HIDE LISTS |