C# Class System.Xml.Schema.XmlSchemaInference

Infer class serves for infering XML Schema from given XML instance document.
Afficher le fichier Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Méthodes publiques

Méthode Description
InferSchema ( XmlReader instanceDocument ) : XmlSchemaSet
InferSchema ( XmlReader instanceDocument, XmlSchemaSet schemas ) : XmlSchemaSet
XmlSchemaInference ( ) : System

Private Methods

Méthode Description
AddAttribute ( string localName, string prefix, string childURI, string attrValue, bool bCreatingNewType, XmlSchema parentSchema, XmlSchemaObjectCollection addLocation, XmlSchemaObjectTable compiledAttributes ) : XmlSchemaAttribute
AddElement ( string localName, string prefix, string childURI, XmlSchema parentSchema, XmlSchemaObjectCollection addLocation, int positionWithinCollection ) : XmlSchemaElement
CheckSimpleContentExtension ( XmlSchemaComplexType ct ) : XmlSchemaSimpleContentExtension
CreateNewElementforChoice ( XmlSchemaElement copyElement ) : XmlSchemaElement
CreateXmlSchema ( string targetNS ) : XmlSchema
DateTime ( string s, bool bDate, bool bTime ) : int
FindAttribute ( ICollection attributes, string attrName ) : XmlSchemaAttribute
FindAttributeRef ( ICollection attributes, string attributeName, string nsURI ) : XmlSchemaAttribute
FindElement ( XmlSchemaObjectCollection elements, string elementName ) : XmlSchemaElement
FindElementRef ( XmlSchemaObjectCollection elements, string elementName, string nsURI ) : XmlSchemaElement
FindGlobalElement ( string namespaceURI, string localName, XmlSchema &parentSchema ) : XmlSchemaElement
FindMatchingElement ( bool bCreatingNewType, XmlReader xtr, XmlSchemaComplexType ct, int &lastUsedSeqItem, bool &bParticleChanged, XmlSchema parentSchema, bool setMaxoccurs ) : XmlSchemaElement

Verifies that the current element has its corresponding element in the sequence and order is the same. If the order is not the same, it changes the particle from Sequence to Sequence with Choice. If there is more elements of the same kind in the sequence, sets maxOccurs to unbounded

GetEffectiveSchemaType ( XmlSchemaElement elem, bool bCreatingNewType ) : XmlSchemaType
GetSchemaType ( XmlQualifiedName qname ) : int
InferElement ( XmlSchemaElement xse, bool bCreatingNewType, XmlSchema parentSchema ) : void

Sets type of the xse based on the currently read element. If the type is already set, verifies that it matches the instance and if not, updates the type to validate the instance.

InferSchema1 ( XmlReader instanceDocument, XmlSchemaSet schemas ) : XmlSchemaSet
InferSimpleType ( string s, bool &bNeedsRangeCheck ) : int
MakeExistingAttributesOptional ( XmlSchemaComplexType ct, XmlSchemaObjectCollection attributesInInstance ) : void
MoveAttributes ( XmlSchemaComplexType ct, XmlSchemaSimpleContentExtension simpleContentExtension, bool bCreatingNewType ) : void
MoveAttributes ( XmlSchemaSimpleContentExtension scExtension, XmlSchemaComplexType ct ) : void
ProcessAttributes ( XmlSchemaElement &xse, XmlSchemaType effectiveSchemaType, bool bCreatingNewType, XmlSchema parentSchema ) : void
RefineSimpleType ( string s, int &iTypeFlags ) : XmlQualifiedName
SetMinMaxOccurs ( XmlSchemaElement el, bool setMaxOccurs ) : void
SwitchUseToOptional ( XmlSchemaObjectCollection attributes, XmlSchemaObjectCollection attributesInInstance ) : void

Method Details

InferSchema() public méthode

public InferSchema ( XmlReader instanceDocument ) : XmlSchemaSet
instanceDocument XmlReader
Résultat XmlSchemaSet

InferSchema() public méthode

public InferSchema ( XmlReader instanceDocument, XmlSchemaSet schemas ) : XmlSchemaSet
instanceDocument XmlReader
schemas XmlSchemaSet
Résultat XmlSchemaSet

XmlSchemaInference() public méthode

public XmlSchemaInference ( ) : System
Résultat System