The xmlarch module contains an XML architectural forms processor written in Python, allowing you to process XML architectural forms using any parser that uses the SAX interfaces. The module allows processing several architectures in one parsing pass. Architectural document events for an architecture can even be broadcast to multiple DocumentHandler instances. (e.g. you can have 2 handlers for the RDF architecture, 3 for the XLink architecture and perhaps one for the HyTime architecture.) The architecture processor uses the SAX DocumentHandler interface which means that you can register the architecture handler (an instance of the ArchDocHandler class) with any SAX 1.0 compliant parser. It currently does not process any meta document type definition documents (meta-DTDs). When a DTD parser module is available the code will be modified to use that in order to process meta-DTD information. Please note that validating and well-formed parsers may report different SAX events when parsing documents.
The xmlarch module contains six classes: ArchDocHandler, Architecture, ArchParseState, ArchException, AttributeParser and Normalizer.