\r
public static XmlSchemaComplexType GetDataTableSchema (XmlSchemaSet schemaSet)\r
{\r
- return new XmlSchemaComplexType ();\r
+ XmlSchemaComplexType result = new XmlSchemaComplexType ();\r
+ XmlSchemaSequence seq = new XmlSchemaSequence ();\r
+ XmlSchemaAny any = new XmlSchemaAny ();\r
+ any.Namespace = XmlConstants.SchemaNamespace;\r
+ any.MinOccurs = 0;\r
+ any.MaxOccursString = "unbounded";\r
+ any.ProcessContents = XmlSchemaContentProcessing.Lax;\r
+ seq.Items.Add (any);\r
+ any = new XmlSchemaAny ();\r
+ any.Namespace = XmlConstants.DiffgrNamespace;\r
+ any.MinOccurs = 0;\r
+ any.ProcessContents = XmlSchemaContentProcessing.Lax;\r
+ seq.Items.Add (any);\r
+ result.Particle = seq;\r
+ return result;\r
}\r
\r
public XmlReadMode ReadXml (Stream stream)\r