def get_validation_schema(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)
 schema = XmlSchema(interface)
 schema.build_validation_schema()
 return schema.validation_schema

def get_validation_schema ( 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 ) schema = XmlSchema ( interface ) schema . build_validation_schema ( ) return schema . validation_schema
returns the validation schema object for the given models .