Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Xml.​Schema.​XmlSchemaInference
Assembly: System.Xml.ReaderWriter
Inheritance: object → XmlSchemaInference
Infers an XML Schema Definition Language (XSD) schema from an XML document. The <see cref="T:System.Xml.Schema.XmlSchemaInference" /> class cannot be inherited.
Properties
public
InferenceOption
Occurrence
Gets or sets the <see cref="T:System.Xml.Schema.XmlSchemaInference.InferenceOption" /> value that affects schema occurrence declarations inferred from the XML document.
public
InferenceOption
TypeInference
Gets or sets the <see cref="T:System.Xml.Schema.XmlSchemaInference.InferenceOption" /> value that affects types inferred from the XML document.
Methods
public
XmlSchemaSet
InferSchema​(XmlReader instanceDocument)
Infers an XML Schema Definition Language (XSD) schema from the XML document contained in the <see cref="T:System.Xml.XmlReader" /> object specified.
Returns An <see cref="T:System.Xml.Schema.XmlSchemaSet" /> object containing the inferred schemas.
instanceDocument
An <see cref="T:System.Xml.XmlReader" /> object containing the XML document to infer a schema from.
public
XmlSchemaSet
InferSchema​(XmlReader instanceDocument,
XmlSchemaSet schemas)
Infers an XML Schema Definition Language (XSD) schema from the XML document contained in the <see cref="T:System.Xml.XmlReader" /> object specified, and refines the inferred schema using an existing schema in the <see cref="T:System.Xml.Schema.XmlSchemaSet" /> object specified with the same target namespace.
Returns An <see cref="T:System.Xml.Schema.XmlSchemaSet" /> object containing the inferred schemas.
instanceDocument
An <see cref="T:System.Xml.XmlReader" /> object containing the XML document to infer a schema from.
schemas
An <see cref="T:System.Xml.Schema.XmlSchemaSet" /> object containing an existing schema used to refine the inferred schema.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object