Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type XSDComplexType ¶
type XSDComplexType struct { XMLName xml.Name `xml:"complexType"` Name string `xml:"name,attr"` Comment string `xml:",comment"` Sequence XSDSequence `xml:"sequence"` }
XSDComplexType represents a complexType
func BuildXSDTypes ¶
func BuildXSDTypes(def *proto.Proto) (list []XSDComplexType, err error)
BuildXSDTypes returns a list of XSD types from a Proto definition.
type XSDElement ¶
type XSDElement struct { XMLName xml.Name `xml:"element"` Name string `xml:"name,attr"` Comment string `xml:",comment"` Type string `xml:"type,attr"` MinOccurs string `xml:"minOccurs,attr,omitempty"` MaxOccurs string `xml:"maxOccurs,attr,omitempty"` }
XSDElement represents an element as part of e.g. sequence
type XSDSchema ¶
type XSDSchema struct { XMLName xml.Name `xml:"schema"` StandardNamespace string `xml:"xmlns,attr"` TargetNamespace string `xml:"targetNamespace,attr"` TargetAlias string `xml:"xmlns:target,attr"` Version string `xml:"xmlns:version,attr"` ElementFormDefault string `xml:"elementFormDefault,attr"` Types []XSDComplexType Elements []XSDElement }
XSDSchema represents a schema
func BuildXSDSchema ¶
BuildXSDSchema returns an initial XSDSchema with defaults.
type XSDSequence ¶
type XSDSequence struct {
Elements []XSDElement `xml:"element"`
}
XSDSequence represents a sequence as part of e.g. complexType
Click to show internal directories.
Click to hide internal directories.