System::Xml::Schema::XmlSchemaInference::InferSchema method

XmlSchemaInference::InferSchema(const SharedPtr<XmlReader>&) method

Infers an XML Schema Definition Language (XSD) schema from the XML document contained in the XmlReader object specified.

SharedPtr<XmlSchemaSet> System::Xml::Schema::XmlSchemaInference::InferSchema(const SharedPtr<XmlReader> &instanceDocument)
ParameterTypeDescription
instanceDocumentconst SharedPtr<XmlReader>&An XmlReader object containing the XML document to infer a schema from.

ReturnValue

An XmlSchemaSet object containing the inferred schemas.

See Also

XmlSchemaInference::InferSchema(const SharedPtr<XmlReader>&, SharedPtr<XmlSchemaSet>) method

Infers an XML Schema Definition Language (XSD) schema from the XML document contained in the XmlReader object specified, and refines the inferred schema using an existing schema in the XmlSchemaSet object specified with the same target namespace.

SharedPtr<XmlSchemaSet> System::Xml::Schema::XmlSchemaInference::InferSchema(const SharedPtr<XmlReader> &instanceDocument, SharedPtr<XmlSchemaSet> schemas)
ParameterTypeDescription
instanceDocumentconst SharedPtr<XmlReader>&An XmlReader object containing the XML document to infer a schema from.
schemasSharedPtr<XmlSchemaSet>An XmlSchemaSet object containing an existing schema used to refine the inferred schema.

ReturnValue

An XmlSchemaSet object containing the inferred schemas.

See Also