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, Stream sampleXmlStream )

Parameters

sourceFilePath
Type: String

An XML file used for the schema creation.

sampleXmlStream
Type: Stream

A sample XML element Stream to infer the schema from.

Return value

Type: Schema
Returns the corresponding Schema object.