C# 클래스 SimpleSchemaParser.SchemaParser

The SchemaParser can parse a schema into simple element definitions. This class uses System.Xml.Schema.XmlSchemaSet to iterate over all the toplevel element and recursively parses them. The parser doesn't support xml elements occuring in multiple contexts. The first occurence of the element will be output, other occurences will be ignored.
파일 보기 프로젝트 열기: q42jaap/xsd2codemirror 1 사용 예제들

공개 메소드들

메소드 설명
Compile ( ) : void

Compiles the schema. Includes are assumed to be relative to the schemaPath provided. If they cannot be read, an exception will only be thrown if an element from the included resource is used. A missing file itself is ignored by the XmlSchemaSet class.

GetXmlElements ( ) : IEnumerable
SchemaParser ( string schemaPath ) : System

비공개 메소드들

메소드 설명
GetParticleDesc ( XmlSchemaParticle particle ) : string
ParseAttribute ( XmlSchemaAttribute attribute ) : SimpleXmlAttribute
ParseElement ( XmlSchemaElement element, bool isTopLevel = false ) : XmlQualifiedName
ParseGoupRef ( XmlSchemaGroupRef groupRef ) : RecursiveChildren

Parses xs:group ref="..." elements in the schema

ParseGroupBase ( XmlSchemaGroupBase group ) : RecursiveChildren

Parses xs:sequence and xs:choice elements in the schema

메소드 상세

Compile() 공개 메소드

Compiles the schema. Includes are assumed to be relative to the schemaPath provided. If they cannot be read, an exception will only be thrown if an element from the included resource is used. A missing file itself is ignored by the XmlSchemaSet class.
public Compile ( ) : void
리턴 void

GetXmlElements() 공개 메소드

public GetXmlElements ( ) : IEnumerable
리턴 IEnumerable

SchemaParser() 공개 메소드

public SchemaParser ( string schemaPath ) : System
schemaPath string
리턴 System