C# Class HandCoded.Meta.DefaultSchemaRecogniser

An instance implementing the SchemaRecognise interface is used to compare an XmlDocument to a SchemaRelease to see if it could be an instance of it.
Inheritance: SchemaRecogniser
Afficher le fichier Open project: formicary/fpml-toolkit-csharp

Méthodes publiques

Méthode Description
DefaultSchemaRecogniser ( ) : System

The DefaultSchemaRecognise class uses the following strategy to see if an XML XmlDocument could be an instance of the indicated SchemaRelease. The approach taken depends on the nature of the :

  • If the SchemaRelease defines one or more possible root elements then this implementation checks of the documents root element name and namespace match the schema.
  • If the SchemaRelease is a pure extension schema (e.g. one containing only new types or substituting elements) then code looks for a reference to the schema's namespace on the root element. This might not be thorough enough for some documents.

Recognises ( SchemaRelease release, XmlDocument document ) : bool

Determines if the XmlDocument could be an instance of the indicated SchemaRelease.

Method Details

DefaultSchemaRecogniser() public méthode

The DefaultSchemaRecognise class uses the following strategy to see if an XML XmlDocument could be an instance of the indicated SchemaRelease. The approach taken depends on the nature of the :
  • If the SchemaRelease defines one or more possible root elements then this implementation checks of the documents root element name and namespace match the schema.
  • If the SchemaRelease is a pure extension schema (e.g. one containing only new types or substituting elements) then code looks for a reference to the schema's namespace on the root element. This might not be thorough enough for some documents.
public DefaultSchemaRecogniser ( ) : System
Résultat System

Recognises() public méthode

Determines if the XmlDocument could be an instance of the indicated SchemaRelease.
public Recognises ( SchemaRelease release, XmlDocument document ) : bool
release SchemaRelease The potential .
document System.Xml.XmlDocument The to be tested.
Résultat bool