Documentation ¶
Overview ¶
Doc: http://www.w3schools.com/schema/schema_elements_ref.asp
It is convecient to be used together with a XML Schema learner like: github.com/kore/XML-Schema-learner
Index ¶
- type All
- type Annotation
- type Attribute
- type AttributeGroup
- type Attributes
- type BSONNodeType
- type BSONTag
- type Choice
- type ComplexType
- type ComplexTypes
- type Element
- type Enumeration
- type Enumerations
- type Extension
- type Group
- type JSONNodeType
- type JSONTag
- type KV
- type List
- type Notation
- type Restriction
- type Schema
- type Sequence
- type SimpleContent
- type SimpleType
- type Type
- type Types
- type Union
- type XMLNodeType
- type XMLTag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation struct {
Documentation string `xml:"documentation"`
}
type Attribute ¶
type Attribute struct { Id string `xml:"id,attr"` Name string `xml:"name,attr"` Type string `xml:"type,attr"` Use string `xml:"use,attr"` Ref string `xml:"ref,attr"` SimpleType *SimpleType `xml:"simpleType"` Annotation Annotation `xml:"annotation"` }
type AttributeGroup ¶
type AttributeGroup struct { Attributes Attributes `xml:"attribute"` AttributeGroups []AttributeGroup `xml:"attributeGroup"` }
type Attributes ¶
type Attributes []Attribute
type BSONNodeType ¶
type BSONNodeType int
const ( BSONNormal BSONNodeType = iota BSONInline BSONOmitted )
type BSONTag ¶
type BSONTag struct { Type BSONNodeType Name string Omitempty bool }
type Choice ¶
type ComplexType ¶
type ComplexType struct { Id string `xml:"id,attr"` Name string `xml:"name,attr"` Groups []Group `xml:"group"` All []All `xml:"all"` Choices []Choice `xml:"choice"` Sequences []Sequence `xml:"sequence"` Attributes Attributes `xml:"attribute"` AttributeGroups []AttributeGroup `xml:"attributeGroup"` SimpleContent *SimpleContent `xml:"simpleContent"` Annotation Annotation `xml:"annotation"` }
func (ComplexType) Decls ¶
func (t ComplexType) Decls() []ast.Decl
func (ComplexType) GoName ¶
func (t ComplexType) GoName() string
func (ComplexType) TypeName ¶
func (t ComplexType) TypeName() string
type ComplexTypes ¶
type ComplexTypes []ComplexType
type Element ¶
type Element struct { Id string `xml:"id,attr"` Name string `xml:"name,attr"` Type string `xml:"type,attr"` ComplexType *ComplexType `xml:"complexType"` MinOccurs string `xml:"minOccurs,attr"` MaxOccurs string `xml:"maxOccurs,attr"` Annotation Annotation `xml:"annotation"` }
type Enumeration ¶
type Enumeration struct {
Value string `xml:"value,attr"`
}
type Enumerations ¶
type Enumerations []Enumeration
type Extension ¶
type Extension struct { Base string `xml:"base,attr"` Attributes Attributes `xml:"attribute"` }
type JSONTag ¶
type JSONTag struct { Type JSONNodeType Name string Omitempty bool }
type Restriction ¶
type Restriction struct { Base string `xml:"base,attr"` Enumerations Enumerations `xml:"enumeration"` }
type Schema ¶
type Schema struct { XMLName xml.Name `xml:"schema"` SimpleTypes []SimpleType `xml:"simpleType"` ComplexTypes ComplexTypes `xml:"complexType"` Groups []Group `xml:"group"` Attributes Attributes `xml:"attribute"` AttributeGroups []AttributeGroup `xml:"attributeGroup"` Elements []Element `xml:"element"` Notations []Notation `xml:"notation"` Annotations []Annotation `xml:"annotation"` }
type Sequence ¶
type SimpleContent ¶
type SimpleContent struct {
Extension Extension `xml:"extension"`
}
type SimpleType ¶
type SimpleType struct { Id string `xml:"id,attr"` Name string `xml:"name,attr"` Restriction *Restriction `xml:"restriction"` List *List `xml:"list"` Union *Union `xml:"union"` }
type XMLNodeType ¶
type XMLNodeType int
const ( XMLElement XMLNodeType = iota XMLAttr XMLCharData XMLInnerXML XMLComment XMLOmitted )
Click to show internal directories.
Click to hide internal directories.