FileDocCategorySizeDatePackage
XMLAlterUtil.javaAPI DocGlassfish v2 API26595Fri May 04 22:25:58 BST 2007com.sun.enterprise.admin.util

NOOPHandler

public final class NOOPHandler extends DefaultHandler
This program is a utility to alter XML documents that need to be changed when implementing the S1AS SE/EE version on the PE base. XSLT was deemed to be verbose error prone and did not have the required funtionality when working at the attribute level. The XML document that governs the changes made to the base XML document is constrained by an XML Shema which is called change.xsd
This program is meant to be modified to address and needs that are encounted in altering all the base XML documents.
A sample XML change document could look like this
author

Fields Summary
private final String
_dtdFileName
Constructors Summary
NOOPHandler(String dtdFileName)

        super();
        _dtdFileName = dtdFileName;
    
Methods Summary
public org.xml.sax.InputSourceresolveEntity(java.lang.String publicId, java.lang.String systemId)

        InputSource is = null;
        try {
            is = new InputSource(new FileInputStream(_dtdFileName));
        } catch(Exception e) {
            throw new SAXException("cannot resolve dtd", e);
        }
        return is;