Title: Wrapper4InputSource does not work since get/set Encoding are not virtual on InputSource!

/*

 * $Id: Wrapper4InputSource.hpp,v 1.5 2002/11/04 15:00:21 tng Exp $

 */

Implementing those functions in Wrapper4InputSource does not really help, since InputSource does not declare them virtual therefore they will be not overwritten.  This leads to the fact that the DOMInputSource (Wrapper4DOMInputSource) is virtually unusable in combination with DOMBuilder, since the parse method is using Wrapper4InputSource internally, but the encoding is always empty (default of InputSource).

    const XMLCh* getEncoding() const;

    const XMLCh* getPublicId() const;

    const XMLCh* getSystemId() const;

    void setEncoding(const XMLCh* const encodingStr);

    void setPublicId(const XMLCh* const publicId);

    void setSystemId(const XMLCh* const systemId);

Easy fix: declare those function virtual in SAX/InputSource.hpp.

- Urs C. Muff

Systems Architect       - Research Lab

[EMAIL PROTECTED]         - X6360

+1 (303) 894 3360

Reply via email to