All Frameworks Class Hierarchy This Framework Previous Next Indexes
System.IUnknown | +---System.IDispatch | +---System.CATBaseUnknown | +---CATISAXInputSource
Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATISAXInputSource
Interface to represent a single input source for an XML entity.
This interface encapsulates information about an input source in a single object, which may include a public identifier or a system identifier
There are two places where the application will deliver this input source to the parser: as the argument to the CATISAXParser.Parse method, or as the return value of the CATISAXEntityResolver.ResolveEntity method.
A CATISAXInputSource encapsulates particular types of input sources. Implementations are provided for URL input sources, memory buffer input sources, and so on.
A CATISAXInputSource object belongs to the application: the parser never modifies them in any way. They are always passed by const reference so the parser will make a copy of any input sources that it must keep around beyond the call.
public virtual HRESULT GetEncoding( | CATUnicodeString& | oEncoding) = 0 |
public virtual HRESULT GetPublicId( | CATUnicodeString& | oPublicId) = 0 |
public virtual HRESULT GetSystemId( | CATUnicodeString& | oSystemId) = 0 |
If the system ID is a URL, it will be fully resolved.
public virtual HRESULT SetEncoding( | const CATUnicodeString& | iEncoding) = 0 |
This is usually not set, allowing the encoding to be sensed in the usual XML way. However, in some cases, the encoding in the file is known to be incorrect because of intermediate transcoding, for instance encapsulation within a MIME document.
public virtual HRESULT SetPublicId( | const CATUnicodeString& | iPublicId) = 0 |
The public identifier is always optional: if the application writer includes one, it will be provided as part of the location information.
public virtual HRESULT SetSystemId( | const CATUnicodeString& | iSystemId) = 0 |
If the system ID is a URL, it must be fully resolved.
Copyright © 2003, Dassault Systèmes. All rights reserved.