...
Documentation
Documentation

# Package wordml

## Overview ▹

## Overview ▾

## Index ▹

## Index ▾

### Package files

Appearance.go CT_CommentEx.go CT_CommentsEx.go CT_Guid.go CT_People.go CT_Person.go CT_PresenceInfo.go CT_SdtAppearance.go CT_SdtRepeatedSection.go ChartTrackingRefBased.go Collapsed.go Color.go CommentsEx.go DataBinding.go DocId.go FootnoteColumns.go People.go RepeatingSection.go RepeatingSectionItem.go WebExtensionCreated.go WebExtensionLinked.go common.go

## Constants

    const ST_GuidPattern = `\{[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}`

## Variables

    var ST_GuidPatternRe = regexp.MustCompile(ST_GuidPattern)

## func ParseStdlibTime ¶

    func ParseStdlibTime(s string) (time.Time, error)

## func ParseUnionST_AdjAngle ¶

    func ParseUnionST_AdjAngle(s string) (dml.ST_AdjAngle, error)

## func ParseUnionST_AdjCoordinate ¶

    func ParseUnionST_AdjCoordinate(s string) (dml.ST_AdjCoordinate, error)

## func ParseUnionST_AnimationChartBuildType ¶

    func ParseUnionST_AnimationChartBuildType(s string) (dml.ST_AnimationChartBuildType, error)

## func ParseUnionST_AnimationDgmBuildType ¶

    func ParseUnionST_AnimationDgmBuildType(s string) (dml.ST_AnimationDgmBuildType, error)

## func ParseUnionST_Coordinate ¶

    func ParseUnionST_Coordinate(s string) (dml.ST_Coordinate, error)

## func ParseUnionST_Coordinate32 ¶

    func ParseUnionST_Coordinate32(s string) (dml.ST_Coordinate32, error)

## func ParseUnionST_FixedPercentage ¶

    func ParseUnionST_FixedPercentage(s string) (dml.ST_FixedPercentage, error)

## func ParseUnionST_OnOff ¶

    func ParseUnionST_OnOff(s string) (sharedTypes.ST_OnOff, error)

## func ParseUnionST_Percentage ¶

    func ParseUnionST_Percentage(s string) (dml.ST_Percentage, error)

## func ParseUnionST_PositiveFixedPercentage ¶

    func ParseUnionST_PositiveFixedPercentage(s string) (dml.ST_PositiveFixedPercentage, error)

## func ParseUnionST_PositivePercentage ¶

    func ParseUnionST_PositivePercentage(s string) (dml.ST_PositivePercentage, error)

## func ParseUnionST_TextFontScalePercentOrPercentString ¶

    func ParseUnionST_TextFontScalePercentOrPercentString(s string) (dml.ST_TextFontScalePercentOrPercentString, error)

## func ParseUnionST_TextPoint ¶

    func ParseUnionST_TextPoint(s string) (dml.ST_TextPoint, error)

## func ParseUnionST_TextSpacingPercentOrPercentString ¶

    func ParseUnionST_TextSpacingPercentOrPercentString(s string) (dml.ST_TextSpacingPercentOrPercentString, error)

## type Any ¶

    type Any interface {
        MarshalXML(e *xml.Encoder, start xml.StartElement) error
        UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
    }

## type Appearance ¶

    type Appearance struct {
        CT_SdtAppearance
    }

### func NewAppearance ¶

    func NewAppearance() *Appearance

### func (*Appearance) MarshalXML ¶

    func (m *Appearance) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*Appearance) UnmarshalXML ¶

    func (m *Appearance) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*Appearance) Validate ¶

    func (m *Appearance) Validate() error

Validate validates the Appearance and its children

### func (*Appearance) ValidateWithPath ¶

    func (m *Appearance) ValidateWithPath(path string) error

ValidateWithPath validates the Appearance and its children, prefixing error messages with path

## type CT_CommentEx ¶

    type CT_CommentEx struct {
        ParaIdAttr       string
        ParaIdParentAttr *string
        DoneAttr         *sharedTypes.ST_OnOff
    }

### func NewCT_CommentEx ¶

    func NewCT_CommentEx() *CT_CommentEx

### func (*CT_CommentEx) MarshalXML ¶

    func (m *CT_CommentEx) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_CommentEx) UnmarshalXML ¶

    func (m *CT_CommentEx) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_CommentEx) Validate ¶

    func (m *CT_CommentEx) Validate() error

Validate validates the CT_CommentEx and its children

### func (*CT_CommentEx) ValidateWithPath ¶

    func (m *CT_CommentEx) ValidateWithPath(path string) error

ValidateWithPath validates the CT_CommentEx and its children, prefixing error messages with path

## type CT_CommentsEx ¶

    type CT_CommentsEx struct {
        CommentEx []*CT_CommentEx
    }

### func NewCT_CommentsEx ¶

    func NewCT_CommentsEx() *CT_CommentsEx

### func (*CT_CommentsEx) MarshalXML ¶

    func (m *CT_CommentsEx) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_CommentsEx) UnmarshalXML ¶

    func (m *CT_CommentsEx) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_CommentsEx) Validate ¶

    func (m *CT_CommentsEx) Validate() error

Validate validates the CT_CommentsEx and its children

### func (*CT_CommentsEx) ValidateWithPath ¶

    func (m *CT_CommentsEx) ValidateWithPath(path string) error

ValidateWithPath validates the CT_CommentsEx and its children, prefixing error messages with path

## type CT_Guid ¶

    type CT_Guid struct {
        ValAttr *string
    }

### func NewCT_Guid ¶

    func NewCT_Guid() *CT_Guid

### func (*CT_Guid) MarshalXML ¶

    func (m *CT_Guid) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_Guid) UnmarshalXML ¶

    func (m *CT_Guid) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_Guid) Validate ¶

    func (m *CT_Guid) Validate() error

Validate validates the CT_Guid and its children

### func (*CT_Guid) ValidateWithPath ¶

    func (m *CT_Guid) ValidateWithPath(path string) error

ValidateWithPath validates the CT_Guid and its children, prefixing error messages with path

## type CT_People ¶

    type CT_People struct {
        Person []*CT_Person
    }

### func NewCT_People ¶

    func NewCT_People() *CT_People

### func (*CT_People) MarshalXML ¶

    func (m *CT_People) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_People) UnmarshalXML ¶

    func (m *CT_People) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_People) Validate ¶

    func (m *CT_People) Validate() error

Validate validates the CT_People and its children

### func (*CT_People) ValidateWithPath ¶

    func (m *CT_People) ValidateWithPath(path string) error

ValidateWithPath validates the CT_People and its children, prefixing error messages with path

## type CT_Person ¶

    type CT_Person struct {
        AuthorAttr   string
        PresenceInfo *CT_PresenceInfo
    }

### func NewCT_Person ¶

    func NewCT_Person() *CT_Person

### func (*CT_Person) MarshalXML ¶

    func (m *CT_Person) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_Person) UnmarshalXML ¶

    func (m *CT_Person) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_Person) Validate ¶

    func (m *CT_Person) Validate() error

Validate validates the CT_Person and its children

### func (*CT_Person) ValidateWithPath ¶

    func (m *CT_Person) ValidateWithPath(path string) error

ValidateWithPath validates the CT_Person and its children, prefixing error messages with path

## type CT_PresenceInfo ¶

    type CT_PresenceInfo struct {
        ProviderIdAttr string
        UserIdAttr     string
    }

### func NewCT_PresenceInfo ¶

    func NewCT_PresenceInfo() *CT_PresenceInfo

### func (*CT_PresenceInfo) MarshalXML ¶

    func (m *CT_PresenceInfo) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_PresenceInfo) UnmarshalXML ¶

    func (m *CT_PresenceInfo) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_PresenceInfo) Validate ¶

    func (m *CT_PresenceInfo) Validate() error

Validate validates the CT_PresenceInfo and its children

### func (*CT_PresenceInfo) ValidateWithPath ¶

    func (m *CT_PresenceInfo) ValidateWithPath(path string) error

ValidateWithPath validates the CT_PresenceInfo and its children, prefixing error messages with path

## type CT_SdtAppearance ¶

    type CT_SdtAppearance struct {
        ValAttr ST_SdtAppearance
    }

### func NewCT_SdtAppearance ¶

    func NewCT_SdtAppearance() *CT_SdtAppearance

### func (*CT_SdtAppearance) MarshalXML ¶

    func (m *CT_SdtAppearance) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_SdtAppearance) UnmarshalXML ¶

    func (m *CT_SdtAppearance) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_SdtAppearance) Validate ¶

    func (m *CT_SdtAppearance) Validate() error

Validate validates the CT_SdtAppearance and its children

### func (*CT_SdtAppearance) ValidateWithPath ¶

    func (m *CT_SdtAppearance) ValidateWithPath(path string) error

ValidateWithPath validates the CT_SdtAppearance and its children, prefixing error messages with path

## type CT_SdtRepeatedSection ¶

    type CT_SdtRepeatedSection struct {
        SectionTitle                  *wml.CT_String
        DoNotAllowInsertDeleteSection *wml.CT_OnOff
    }

### func NewCT_SdtRepeatedSection ¶

    func NewCT_SdtRepeatedSection() *CT_SdtRepeatedSection

### func (*CT_SdtRepeatedSection) MarshalXML ¶

    func (m *CT_SdtRepeatedSection) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CT_SdtRepeatedSection) UnmarshalXML ¶

    func (m *CT_SdtRepeatedSection) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CT_SdtRepeatedSection) Validate ¶

    func (m *CT_SdtRepeatedSection) Validate() error

Validate validates the CT_SdtRepeatedSection and its children

### func (*CT_SdtRepeatedSection) ValidateWithPath ¶

    func (m *CT_SdtRepeatedSection) ValidateWithPath(path string) error

ValidateWithPath validates the CT_SdtRepeatedSection and its children, prefixing error messages with path

## type ChartTrackingRefBased ¶

    type ChartTrackingRefBased struct {
        wml.CT_OnOff
    }

### func NewChartTrackingRefBased ¶

    func NewChartTrackingRefBased() *ChartTrackingRefBased

### func (*ChartTrackingRefBased) MarshalXML ¶

    func (m *ChartTrackingRefBased) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*ChartTrackingRefBased) UnmarshalXML ¶

    func (m *ChartTrackingRefBased) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*ChartTrackingRefBased) Validate ¶

    func (m *ChartTrackingRefBased) Validate() error

Validate validates the ChartTrackingRefBased and its children

### func (*ChartTrackingRefBased) ValidateWithPath ¶

    func (m *ChartTrackingRefBased) ValidateWithPath(path string) error

ValidateWithPath validates the ChartTrackingRefBased and its children, prefixing error messages with path

## type Collapsed ¶

    type Collapsed struct {
        wml.CT_OnOff
    }

### func NewCollapsed ¶

    func NewCollapsed() *Collapsed

### func (*Collapsed) MarshalXML ¶

    func (m *Collapsed) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*Collapsed) UnmarshalXML ¶

    func (m *Collapsed) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*Collapsed) Validate ¶

    func (m *Collapsed) Validate() error

Validate validates the Collapsed and its children

### func (*Collapsed) ValidateWithPath ¶

    func (m *Collapsed) ValidateWithPath(path string) error

ValidateWithPath validates the Collapsed and its children, prefixing error messages with path

## type Color ¶

    type Color struct {
        wml.CT_Color
    }

### func NewColor ¶

    func NewColor() *Color

### func (*Color) MarshalXML ¶

    func (m *Color) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*Color) UnmarshalXML ¶

    func (m *Color) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*Color) Validate ¶

    func (m *Color) Validate() error

Validate validates the Color and its children

### func (*Color) ValidateWithPath ¶

    func (m *Color) ValidateWithPath(path string) error

ValidateWithPath validates the Color and its children, prefixing error messages with path

## type CommentsEx ¶

    type CommentsEx struct {
        CT_CommentsEx
    }

### func NewCommentsEx ¶

    func NewCommentsEx() *CommentsEx

### func (*CommentsEx) MarshalXML ¶

    func (m *CommentsEx) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*CommentsEx) UnmarshalXML ¶

    func (m *CommentsEx) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*CommentsEx) Validate ¶

    func (m *CommentsEx) Validate() error

Validate validates the CommentsEx and its children

### func (*CommentsEx) ValidateWithPath ¶

    func (m *CommentsEx) ValidateWithPath(path string) error

ValidateWithPath validates the CommentsEx and its children, prefixing error messages with path

## type DataBinding ¶

    type DataBinding struct {
        wml.CT_DataBinding
    }

### func NewDataBinding ¶

    func NewDataBinding() *DataBinding

### func (*DataBinding) MarshalXML ¶

    func (m *DataBinding) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*DataBinding) UnmarshalXML ¶

    func (m *DataBinding) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*DataBinding) Validate ¶

    func (m *DataBinding) Validate() error

Validate validates the DataBinding and its children

### func (*DataBinding) ValidateWithPath ¶

    func (m *DataBinding) ValidateWithPath(path string) error

ValidateWithPath validates the DataBinding and its children, prefixing error messages with path

## type DocId ¶

    type DocId struct {
        CT_Guid
    }

### func NewDocId ¶

    func NewDocId() *DocId

### func (*DocId) MarshalXML ¶

    func (m *DocId) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*DocId) UnmarshalXML ¶

    func (m *DocId) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*DocId) Validate ¶

    func (m *DocId) Validate() error

Validate validates the DocId and its children

### func (*DocId) ValidateWithPath ¶

    func (m *DocId) ValidateWithPath(path string) error

ValidateWithPath validates the DocId and its children, prefixing error messages with path

## type FootnoteColumns ¶

    type FootnoteColumns struct {
        wml.CT_DecimalNumber
    }

### func NewFootnoteColumns ¶

    func NewFootnoteColumns() *FootnoteColumns

### func (*FootnoteColumns) MarshalXML ¶

    func (m *FootnoteColumns) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*FootnoteColumns) UnmarshalXML ¶

    func (m *FootnoteColumns) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*FootnoteColumns) Validate ¶

    func (m *FootnoteColumns) Validate() error

Validate validates the FootnoteColumns and its children

### func (*FootnoteColumns) ValidateWithPath ¶

    func (m *FootnoteColumns) ValidateWithPath(path string) error

ValidateWithPath validates the FootnoteColumns and its children, prefixing error messages with path

## type People ¶

    type People struct {
        CT_People
    }

### func NewPeople ¶

    func NewPeople() *People

### func (*People) MarshalXML ¶

    func (m *People) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*People) UnmarshalXML ¶

    func (m *People) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*People) Validate ¶

    func (m *People) Validate() error

Validate validates the People and its children

### func (*People) ValidateWithPath ¶

    func (m *People) ValidateWithPath(path string) error

ValidateWithPath validates the People and its children, prefixing error messages with path

## type RepeatingSection ¶

    type RepeatingSection struct {
        CT_SdtRepeatedSection
    }

### func NewRepeatingSection ¶

    func NewRepeatingSection() *RepeatingSection

### func (*RepeatingSection) MarshalXML ¶

    func (m *RepeatingSection) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*RepeatingSection) UnmarshalXML ¶

    func (m *RepeatingSection) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*RepeatingSection) Validate ¶

    func (m *RepeatingSection) Validate() error

Validate validates the RepeatingSection and its children

### func (*RepeatingSection) ValidateWithPath ¶

    func (m *RepeatingSection) ValidateWithPath(path string) error

ValidateWithPath validates the RepeatingSection and its children, prefixing error messages with path

## type RepeatingSectionItem ¶

    type RepeatingSectionItem struct {
        wml.CT_Empty
    }

### func NewRepeatingSectionItem ¶

    func NewRepeatingSectionItem() *RepeatingSectionItem

### func (*RepeatingSectionItem) MarshalXML ¶

    func (m *RepeatingSectionItem) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*RepeatingSectionItem) UnmarshalXML ¶

    func (m *RepeatingSectionItem) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*RepeatingSectionItem) Validate ¶

    func (m *RepeatingSectionItem) Validate() error

Validate validates the RepeatingSectionItem and its children

### func (*RepeatingSectionItem) ValidateWithPath ¶

    func (m *RepeatingSectionItem) ValidateWithPath(path string) error

ValidateWithPath validates the RepeatingSectionItem and its children, prefixing error messages with path

## type ST_SdtAppearance ¶

    type ST_SdtAppearance byte

    const (
        ST_SdtAppearanceUnset       ST_SdtAppearance = 0
        ST_SdtAppearanceBoundingBox ST_SdtAppearance = 1
        ST_SdtAppearanceTags        ST_SdtAppearance = 2
        ST_SdtAppearanceHidden      ST_SdtAppearance = 3
    )

### func (ST_SdtAppearance) MarshalXML ¶

    func (m ST_SdtAppearance) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (ST_SdtAppearance) MarshalXMLAttr ¶

    func (e ST_SdtAppearance) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

### func (ST_SdtAppearance) String ¶

    func (m ST_SdtAppearance) String() string

### func (*ST_SdtAppearance) UnmarshalXML ¶

    func (m *ST_SdtAppearance) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*ST_SdtAppearance) UnmarshalXMLAttr ¶

    func (e *ST_SdtAppearance) UnmarshalXMLAttr(attr xml.Attr) error

### func (ST_SdtAppearance) Validate ¶

    func (m ST_SdtAppearance) Validate() error

### func (ST_SdtAppearance) ValidateWithPath ¶

    func (m ST_SdtAppearance) ValidateWithPath(path string) error

## type WebExtensionCreated ¶

    type WebExtensionCreated struct {
        wml.CT_OnOff
    }

### func NewWebExtensionCreated ¶

    func NewWebExtensionCreated() *WebExtensionCreated

### func (*WebExtensionCreated) MarshalXML ¶

    func (m *WebExtensionCreated) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*WebExtensionCreated) UnmarshalXML ¶

    func (m *WebExtensionCreated) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*WebExtensionCreated) Validate ¶

    func (m *WebExtensionCreated) Validate() error

Validate validates the WebExtensionCreated and its children

### func (*WebExtensionCreated) ValidateWithPath ¶

    func (m *WebExtensionCreated) ValidateWithPath(path string) error

ValidateWithPath validates the WebExtensionCreated and its children, prefixing error messages with path

## type WebExtensionLinked ¶

    type WebExtensionLinked struct {
        wml.CT_OnOff
    }

### func NewWebExtensionLinked ¶

    func NewWebExtensionLinked() *WebExtensionLinked

### func (*WebExtensionLinked) MarshalXML ¶

    func (m *WebExtensionLinked) MarshalXML(e *xml.Encoder, start xml.StartElement) error

### func (*WebExtensionLinked) UnmarshalXML ¶

    func (m *WebExtensionLinked) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

### func (*WebExtensionLinked) Validate ¶

    func (m *WebExtensionLinked) Validate() error

Validate validates the WebExtensionLinked and its children

### func (*WebExtensionLinked) ValidateWithPath ¶

    func (m *WebExtensionLinked) ValidateWithPath(path string) error

ValidateWithPath validates the WebExtensionLinked and its children, prefixing error messages with path