XmlReaderSettings.Add(Using an instance from an assembly Schema)
I have a dll Assembly Name.Space.SCHEMAS.dll Inside this dll is a class
TransMsg This class is a XSD schema with a BaseTypes >> SchemaBase >>
Schema Schema is a propert of SchemaBase
I have also XmlReaderSettings booksSettings = new XmlReaderSettings(); The
booksSettings.Schemas.Add(Schema) i.e I need to add the instance of the
schema to XmlReaderSettings, during runtime
<i>string varSchemaNameSpace = ", Name.Space.SCHEMAS";
string varFullySchemaName = "Name.Space.SCHEMAS.TransMsg";
string varStringDocSpecType = varFullySchemaName + varSchemaNameSpace;
// Get type.
Type varDocSpecType = Type.GetType(varStringDocSpecType);
XmlReaderSettings booksSettings = new XmlReaderSettings();
booksSettings.Schemas.Add(varDocSpecType2.Schema); // This is not working
</i>
Please your help is needed
Thanks in Advance
No comments:
Post a Comment