C# 클래스 System.Xml.Schema.XmlSchemaInference

Infer class serves for infering XML Schema from given XML instance document.
파일 보기 프로젝트 열기: gbarnett/shared-source-cli-2.0 1 사용 예제들

공개 메소드들

메소드 설명
InferSchema ( XmlReader instanceDocument ) : XmlSchemaSet
InferSchema ( XmlReader instanceDocument, XmlSchemaSet schemas ) : XmlSchemaSet
XmlSchemaInference ( ) : System

비공개 메소드들

메소드 설명
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

메소드 상세

InferSchema() 공개 메소드

public InferSchema ( XmlReader instanceDocument ) : XmlSchemaSet
instanceDocument XmlReader
리턴 XmlSchemaSet

InferSchema() 공개 메소드

public InferSchema ( XmlReader instanceDocument, XmlSchemaSet schemas ) : XmlSchemaSet
instanceDocument XmlReader
schemas XmlSchemaSet
리턴 XmlSchemaSet

XmlSchemaInference() 공개 메소드

public XmlSchemaInference ( ) : System
리턴 System