def get_schema_documents(models, default_namespace=None):
 if (default_namespace is None):
  default_namespace = models[0].get_namespace()
 fake_app = FakeApplication()
 fake_app.tns = default_namespace
 fake_app.services = []
 interface = Interface(fake_app)
 for m in models:
  m.resolve_namespace(m, default_namespace)
  interface.add_class(m)
 interface.populate_interface(fake_app)
 document = XmlSchema(interface)
 document.build_interface_document()
 return document.get_interface_document()

def get_schema_documents ( models , default_namespace = None ) : if ( default_namespace is None ) : default_namespace = models [ 0 ] . get_namespace ( ) fake_app = FakeApplication ( ) fake_app . tns = default_namespace fake_app . services = [ ] interface = Interface ( fake_app ) for m in models : m . resolve_namespace ( m , default_namespace ) interface . add_class ( m ) interface . populate_interface ( fake_app ) document = XmlSchema ( interface ) document . build_interface_document ( ) return document . get_interface_document ( )
returns the schema documents in a dict whose keys are namespace prefixes and values are element objects .