Class XsdGenerator
Summary description for XSDSchemeGenerator.
Namespace: Syncfusion.DocIO.DLS
Assembly: Syncfusion.DocIO.Base.dll
Syntax
public class XsdGenerator : Object
Constructors
XsdGenerator()
Declaration
public XsdGenerator()
Fields
DEF_DLS_RESOURCES
Declaration
protected const string DEF_DLS_RESOURCES = "Syncfusion.DocIO.DLS.Resources"
Field Value
Type |
---|
System.String |
Methods
GenerateDLSSchema()
Generates the DLS schema.
Declaration
public XmlSchema GenerateDLSSchema()
Returns
Type | Description |
---|---|
System.Xml.Schema.XmlSchema | Returns the DLS schema. |
GenerateSchema(XmlDocument)
Generates the schema.
Declaration
public XmlSchema GenerateSchema(XmlDocument metaSchema)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlDocument | metaSchema | The meta schema. |
Returns
Type | Description |
---|---|
System.Xml.Schema.XmlSchema | Returns the XmlSchema. |
GetDLSLocalSchema()
Gets the DLS local schema.
Declaration
public static XmlSchema GetDLSLocalSchema()
Returns
Type | Description |
---|---|
System.Xml.Schema.XmlSchema | Returns the DLS local schema. |
GetDLSResourceStream(String)
Gets the DLS resource stream.
Declaration
protected static Stream GetDLSResourceStream(string resName)
Parameters
Type | Name | Description |
---|---|---|
System.String | resName | Name of the res. |
Returns
Type |
---|
System.IO.Stream |
GetResourceStream(String, String)
Gets the resource stream.
Declaration
protected virtual Stream GetResourceStream(string resName, string resNamespace)
Parameters
Type | Name | Description |
---|---|---|
System.String | resName | Name of the res. |
System.String | resNamespace | The res namespace. |
Returns
Type |
---|
System.IO.Stream |
LoadXmlDocument(Stream)
Loads the XML document.
Declaration
protected static XmlDocument LoadXmlDocument(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The stream. |
Returns
Type |
---|
System.Xml.XmlDocument |
OnValidation(Object, ValidationEventArgs)
Called when [validation].
Declaration
protected static void OnValidation(object sender, ValidationEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The sender. |
System.Xml.Schema.ValidationEventArgs | args | The System.Xml.Schema.ValidationEventArgs instance containing the event data. |