Hi..
I am working in visual studio 2005 working on dataset.
having fallowing code which is not working well getting lots of error.
public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
{
XmlSchemaComplexType schemaComplexType = new XmlSchemaComplexType();
XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
DarusSalamDataSet darusSalamDataSet = new DarusSalamDataSet();
xs.Add(darusSalamDataSet.GetSchemaSerializable());
XmlSchemaAny xmlSchemaAny1 = new XmlSchemaAny();
xmlSchemaAny1.Namespace = "http://www.w3.org/2001/XMLSchema";
xmlSchemaAny1.MinOccurs = new Decimal(0);
xmlSchemaAny1.MaxOccurs = new Decimal(-1, -1, -1, false, (byte) 0);
xmlSchemaAny1.ProcessContents = XmlSchemaContentProcessing.Lax;
xmlSchemaSequence.Items.Add((XmlSchemaObject) xmlSchemaAny1);
XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny();
xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
xmlSchemaAny2.MinOccurs = new Decimal(1);
xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax;
xmlSchemaSequence.Items.Add((XmlSchemaObject) xmlSchemaAny2);
schemaComplexType.Attributes.Add((XmlSchemaObject) new XmlSchemaAttribute()
Name = "namespace",
FixedValue = darusSalamDataSet.Namespace
);
schemaComplexType.Attributes.Add((XmlSchemaObject) new XmlSchemaAttribute()
{
Name = "tableTypeName",
FixedValue = "UsersDataTable"
});
schemaComplexType.Particle = (XmlSchemaParticle) xmlSchemaSequence;
return schemaComplexType;
}
please help me.
THanks