I'd like to associate an Entity-manager with Xerces and fail to get it
right. The classes are quite straightforward

public em extends EntityManager {

        public InputStream(String pubid, String sysid) {
                if(pubid.equals("foo"))
                        return new InputStream("file:/c:/dtd/dtd1.dtd");
                else
                        return null;
        }
}

Then I attach this manager to a parser using

        parser.setEntityManager(new em());

The parser does not use the manager as expected. Any idea?

Armin

Reply via email to