PyDocs

Nav

Structured Markup Processing Tools

InputSource

  • InputSource(system_id=None)
Encapsulation of the information needed by the XMLReader to
read entities.

This class may include information about the public identifier,
system identifier, byte stream (possibly with character encoding
information) and/or the character stream of an entity.

Applications will create objects of this class for use in the
XMLReader.parse method and for returning from
EntityResolver.resolveEntity.

An InputSource belongs to the application, the XMLReader is not
allowed to modify InputSource objects passed to it from the
application, although it may make copies and modify those.
Members of InputSource

g

getByteStream
Get the byte stream for this input source.
getCharacterStream
Get the character stream for this input source.
getEncoding
Get the character encoding of this InputSource.
getPublicId
Returns the public identifier of this InputSource.
getSystemId
Returns the system identifier of this InputSource.

s

setByteStream
Set the byte stream (a Python file-like object which does not perform byte-to-character conversion) for this input source.
setCharacterStream
Set the character stream for this input source.
setEncoding
Sets the character encoding of this InputSource.
setPublicId
Sets the public identifier of this InputSource.
setSystemId
Sets the system identifier of this InputSource.
0 Examples
No examples for xml.sax.xmlreader/InputSource.
See Also
No see-alsos for xml.sax.xmlreader/InputSource
0 Notes
No notes for InputSource