InferSchema()

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)

Arguments

ParameterTypeDescription
instanceDocumentconst SharedPtr<XmlReader>&An XmlReader object containing the XML document to infer a schema from.

Return Value

An XmlSchemaSet object containing the inferred schemas.

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)

Arguments

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.

Return Value

An XmlSchemaSet object containing the inferred schemas.

See Also