Documentation ¶
Index ¶
- func MakePath(path []string) string
- type ComplexContent
- type ComplexType
- type Element
- type Enumeration
- type Extension
- type GetAliaser
- type InnerSchema
- type Schema
- func (self *Schema) EncodeElement(name string, enc *xml.Encoder, sr SchemaRepository, ...) error
- func (self *Schema) EncodeType(name string, enc *xml.Encoder, sr SchemaRepository, ...) error
- func (self *Schema) GetAlias(alias string) (space string)
- func (self *Schema) Namespace() string
- func (self *Schema) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error)
- type SchemaMap
- type SchemaRepository
- type Schemaer
- type SimpleType
- type SimpleTypeRestriction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ComplexContent ¶
type ComplexType ¶
type ComplexType struct { XMLName xml.Name `xml:"http://www.w3.org/2001/XMLSchema complexType"` Name string `xml:"name,attr"` Abstract bool `xml:"abstract,attr"` Sequence []Element `xml:"sequence>element"` Content *ComplexContent `xml:"http://www.w3.org/2001/XMLSchema complexContent"` }
func (*ComplexType) Encode ¶
func (self *ComplexType) Encode(enc *xml.Encoder, sr SchemaRepository, ga GetAliaser, params map[string]interface{}, path ...string) (err error)
type Element ¶
type Element struct { XMLName xml.Name `xml:"http://www.w3.org/2001/XMLSchema element"` Type string `xml:"type,attr"` Nillable string `xml:"nillable,attr"` MinOccurs string `xml:"minOccurs,attr"` MaxOccurs string `xml:"maxOccurs,attr"` Form string `xml:"form,attr"` Name string `xml:"name,attr"` ComplexTypes *ComplexType `xml:"http://www.w3.org/2001/XMLSchema complexType"` }
func (*Element) Encode ¶
func (self *Element) Encode(enc *xml.Encoder, sr SchemaRepository, ga GetAliaser, params map[string]interface{}, path ...string) (err error)
type Enumeration ¶
type GetAliaser ¶
type InnerSchema ¶
type InnerSchema struct { TargetNamespace string `xml:"targetNamespace,attr"` ElementFormDefault string `xml:"elementFormDefault,attr"` Version string `xml:"version,attr"` ComplexTypes []ComplexType `xml:"http://www.w3.org/2001/XMLSchema complexType"` SimpleTypes []SimpleType `xml:"http://www.w3.org/2001/XMLSchema simpleType"` Elements []Element `xml:"http://www.w3.org/2001/XMLSchema element"` }
type Schema ¶
type Schema struct { XMLName xml.Name `xml:"http://www.w3.org/2001/XMLSchema schema"` Aliases map[string]string InnerSchema }
func (*Schema) EncodeElement ¶
func (*Schema) EncodeType ¶
func (*Schema) UnmarshalXML ¶
type SchemaMap ¶
func (SchemaMap) GetElement ¶
type SchemaRepository ¶
type SimpleType ¶
type SimpleType struct { XMLName xml.Name `xml:"http://www.w3.org/2001/XMLSchema simpleType"` Name string `xml:"name,attr"` Restriction SimpleTypeRestriction `xml:"restriction"` }
func (*SimpleType) Encode ¶
func (self *SimpleType) Encode(enc *xml.Encoder, sr SchemaRepository, ga GetAliaser, params map[string]interface{}, path ...string) (err error)
type SimpleTypeRestriction ¶
type SimpleTypeRestriction struct { XMLName xml.Name `xml:"http://www.w3.org/2001/XMLSchema restriction"` Base string `xml:"base,attr"` Enumerations []Enumeration `xml:"http://www.w3.org/2001/XMLSchema enumeration"` }
Click to show internal directories.
Click to hide internal directories.