+ int di = -1;
+ if (schemaId != null && schemaId != "") {
+ try {
+ di = int.Parse (schemaId);
+ } catch {
+ XmlSchemas xss = GetSchemas ();
+ for (int i = 0; i < xss.Count; i++) {
+ if (xss [i].Id == schemaId) {
+ di = i;
+ break;
+ }
+ }
+ }
+ if (di < 0)
+ throw new InvalidOperationException (String.Format ("HTTP parameter 'schema' needs to specify an Id of a schema in the schemas. {0} points to nowhere.", schemaId));
+ }