Esempio n. 1
0
 public XmlSchemaSet InferSchema(XmlReader instanceDocument,
                                 XmlSchemaSet schemas)
 {
     return(XsdInference.Process(instanceDocument, schemas,
                                 occurrence == InferenceOption.Relaxed,
                                 typeInference == InferenceOption.Relaxed));
 }
Esempio n. 2
0
        public static XmlSchemaSet Process(XmlReader xmlReader,
                                           XmlSchemaSet schemas,
                                           bool laxOccurrence,
                                           bool laxTypeInference)
        {
            XsdInference impl = new XsdInference(xmlReader,
                                                 schemas, laxOccurrence, laxTypeInference);

            impl.Run();
            return(impl.schemas);
        }