Creates an XML Schema object by infering the schema information from the given sample XML.

Namespace: Docentric.Documents.Reporting.TemplateManagement.Metadata.Xml
Assembly: Docentric.Documents.Reporting (in Docentric.Documents.Reporting.dll)
public static Schema FromSampleXml( String sourceFilePath, XElement sampleXml )

Parameters

sourceFilePath
Type: String

An XML file used for the schema creation.

sampleXml
Type: XElement

A sample XML element to infer the schema from.

Return value

Type: Schema
Returns the corresponding Schema object.