Exemplo n.º 1
0
 public XmlSchemaSet InferSchema(XmlReader instanceDocument,
                                 XmlSchemaSet schemas)
 {
     return(XsdInference.Process(instanceDocument, schemas,
                                 occurrence == InferenceOption.Relaxed,
                                 typeInference == InferenceOption.Relaxed));
 }
Exemplo 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);
        }