An application that uses the xmlproc API has to import the xmlproc module (non-validating parsing) or the xmlval module (validating parsing). A parser object is created by instantiating an object of the XMLProcessor class (non-validating) or XMLValidator (validating). Both classes have the same interface.
If you want to receive information about the document being parsed you must implement an object conforming to the Application interface, and tell the parser about it with the set_application method.
If you want to receive error events and react to them you must implement an object conforming to the ErrorHandler interface, and tell the parser to use your error handler with the set_error_handler method.
It is also possible to control the way the parser interprets system identifiers, by implementing an object conforming to the InputSourceFactory interface and giving it to the parser with the set_inputsource_factory method.
See the DTD API documentation and the catalog file documentation.
These are the classes of interest to xmlproc application writers:
This is the interface implemented by the two XML parser objects and is used to control parsing.
def __init__(self):
def set_application(self,app):
def set_error_handler(self,err):
def set_inputsource_factory(self,isf):
def set_pubid_resolver(self,pubres):
def set_dtd_listener(self, dtd_listener):
def parse_resource(self,sysID,bufsize=16384):
def reset(self):
def feed(self,new_data):
def close(self):
def get_current_sysid(self):
def get_offset(self):
def get_line(self):
def get_column(self):
def get_dtd(self):
def set_error_language(self,language):
def set_data_after_wf_error(self,stop_on_error):
def set_read_external_subset(self, read):
def deref(self):
def get_elem_stack(self):
def get_raw_construct(self):
def get_current_ent_stack(self):
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the interface of the objects has atity sysid) tuples.
This is the int