class MyDeclHandler implements DeclHandler{
public void attributeDecl(String eName, String aName,
String type, String valueDefault, String value){
System.out.println(
"attributeDecl: \t" + eName +
", " + aName +
", " + type +
", " + valueDefault +
", " + value );
}
public void elementDecl(String name, String model){
System.out.println(
"elementDecl: \t" + name +
", " + model );
}
public void externalEntityDecl(String name, String publicId,
String systemId){
System.out.println(
"externalEntityDecl: \t" + name +
", " + publicId +
", " + systemId );
}
public void internalEntityDecl(String name, String value){
System.out.println(
"internalEntityDecl: \t" + name +
", " + value );
}
}
-_-_-
class MyDTDHandler implements DTDHandler{
public void notationDecl(String name, String publicId,
String systemId){
System.out.println(
"notationDecl: \t" + name +
", " + publicId +
", " + systemId );
}
public void unparsedEntityDecl(String name, String publicId,
String systemId, String notationName){
System.out.println(
"unparsedEntityDecl: \t" + name +
", " + publicId +
", " + systemId +
", " + notationName );
}
}
-_-_-