xml.sax.xmlreader.Locator

class xml.sax.xmlreader.Locator Interface for associating a SAX event with a document location. A locator object will return valid results only during calls to DocumentHandler methods; at any other time, the results are unpredictable. If information is not available, methods may return None.

xml.sax.xmlreader.InputSource.setSystemId()

InputSource.setSystemId(id) Sets the system identifier of this InputSource.

xml.sax.xmlreader.InputSource.setPublicId()

InputSource.setPublicId(id) Sets the public identifier of this InputSource.

xml.sax.xmlreader.InputSource.setEncoding()

InputSource.setEncoding(encoding) Sets the character encoding of this InputSource. The encoding must be a string acceptable for an XML encoding declaration (see section 4.3.3 of the XML recommendation). The encoding attribute of the InputSource is ignored if the InputSource also contains a character stream.

xml.sax.xmlreader.InputSource.setCharacterStream()

InputSource.setCharacterStream(charfile) Set the character stream (a text file) for this input source. If there is a character stream specified, the SAX parser will ignore any byte stream and will not attempt to open a URI connection to the system identifier.

xml.sax.xmlreader.InputSource.setByteStream()

InputSource.setByteStream(bytefile) Set the byte stream (a binary file) for this input source. The SAX parser will ignore this if there is also a character stream specified, but it will use a byte stream in preference to opening a URI connection itself. If the application knows the character encoding of the byte stream, it should set it with the setEncoding method.

xml.sax.xmlreader.InputSource.getSystemId()

InputSource.getSystemId() Returns the system identifier of this InputSource.

xml.sax.xmlreader.InputSource.getPublicId()

InputSource.getPublicId() Returns the public identifier of this InputSource.

xml.sax.xmlreader.InputSource.getEncoding()

InputSource.getEncoding() Get the character encoding of this InputSource.

xml.sax.xmlreader.InputSource.getCharacterStream()

InputSource.getCharacterStream() Get the character stream for this input source.