Input source for XML data
Input source for XML data.The InputSource class contains information about a single input source of XML content for use by a parser. The InputSource class is used as an input parameter to the parse() method of a Parse object, and as a return value from the resolveEntity() method of an EntityResolver object.
In both cases the InputSource is used by the parser to read XML data. The parser will not modify the content of the InputSource object received. The InputSource objects belong to the application and they are always passed as constant reference to the parser.
The information in the object includes: a public identifier and a system identifier. The parser will use the system identifier to open a connection to the URI specified by the system identifier.
Please note that this interface deviates slightly from the SAX version 1.0 for Java(tm) implementation and its definition due to differences between the Java(tm) language and C++. At the time of writing, no formal definition of SAX version 1.0 or 2.0 for C++ has been completed.
The system identifier is set in
order to provide a base URI for resolving relative URIs in
the XML document.
The system identifier is set in
order to provide a base URI for resolving relative URIs in
the XML document.
InputSource(const ibxmlchar* systemId)
InputSource(const char* systemId)
An input source can be set to force the parser to assume a
particular encoding. If none is set, it is derived from the
document.
An input source can be set to force the parser to assume a
particular encoding. If none is set, it is derived from the
document.
The returned InputStreamByte object has to be deleted by
the user, i.e. the user owns the returned object.
ibxmlchar* getSystemId() const
void setEncoding(const ibxmlchar* encoding)
ibxmlchar* getEncoding() const
InputStreamByte* getByteStream()
Alphabetic index Hierarchy of classes